summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-26 02:19:45 -0500
committerMichael Stahl <mstahl@redhat.com>2013-06-26 18:25:20 +0000
commit4d5fc661d37d03129b8054e494c03bed1933231d (patch)
tree7c62944737eb0032eee04137d6542f539cbee481 /svx
parent74c32004c096e8820b6e29092caabde2184c2141 (diff)
coverity#1027651 Dereference after null check
Change-Id: Id90ef9f43578d952fd8d7872d4fd2fd622d07dbd Reviewed-on: https://gerrit.libreoffice.org/4529 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdhdl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index 7058e0c50785..34f514901e57 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -2364,7 +2364,7 @@ void SdrCropViewHdl::CreateB2dIAObject()
SdrMarkView* pView = pHdlList ? pHdlList->GetView() : 0;
SdrPageView* pPageView = pView ? pView->GetSdrPageView() : 0;
- if(pPageView && pView->areMarkHandlesHidden())
+ if(!pPageView || (pPageView && pView->areMarkHandlesHidden()))
{
return;
}
@@ -2525,7 +2525,7 @@ void SdrCropViewHdl::CreateB2dIAObject()
for(sal_uInt32 b(0L); b < pPageView->PageWindowCount(); b++)
{
// const SdrPageViewWinRec& rPageViewWinRec = rPageViewWinList[b];
- const SdrPageWindow& rPageWindow = *pPageView->GetPageWindow(b);
+ const SdrPageWindow& rPageWindow = *(pPageView->GetPageWindow(b));
if(rPageWindow.GetPaintWindow().OutputToWindow())
{