Kaydet (Commit) 4d5fc661 authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud Kaydeden (comit) Michael Stahl

coverity#1027651 Dereference after null check

Change-Id: Id90ef9f43578d952fd8d7872d4fd2fd622d07dbd
Reviewed-on: https://gerrit.libreoffice.org/4529Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 74c32004
...@@ -2364,7 +2364,7 @@ void SdrCropViewHdl::CreateB2dIAObject() ...@@ -2364,7 +2364,7 @@ void SdrCropViewHdl::CreateB2dIAObject()
SdrMarkView* pView = pHdlList ? pHdlList->GetView() : 0; SdrMarkView* pView = pHdlList ? pHdlList->GetView() : 0;
SdrPageView* pPageView = pView ? pView->GetSdrPageView() : 0; SdrPageView* pPageView = pView ? pView->GetSdrPageView() : 0;
if(pPageView && pView->areMarkHandlesHidden()) if(!pPageView || (pPageView && pView->areMarkHandlesHidden()))
{ {
return; return;
} }
...@@ -2525,7 +2525,7 @@ void SdrCropViewHdl::CreateB2dIAObject() ...@@ -2525,7 +2525,7 @@ void SdrCropViewHdl::CreateB2dIAObject()
for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++) for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
{ {
// const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b]; // const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b];
const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b); const SdrPageWindow& rPageWindow = *(pPageView->GetPageWindow(b));
if(rPageWindow.GetPaintWindow().OutputToWindow()) if(rPageWindow.GetPaintWindow().OutputToWindow())
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment