summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-19 14:16:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-19 15:42:50 +0100
commit27ccddf5034ec9e80a5adf93c630247bb5807676 (patch)
treeae1a1212e15586d7782520c28ca454c1a3c920e2
parentc21db7b9a5502bf849ac890c20fac10d3ba32fcb (diff)
afl-eventtesting: deref of null GetSdrPageView
Change-Id: Iec3266746c78e58e3c3a094e6511d79dadc4e4c6
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 5bb2310a834b..3b1e764f56fb 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -1152,12 +1152,15 @@ void PosSizePropertyPanel::DisableControls()
void PosSizePropertyPanel::SetPosXYMinMax()
{
+ SdrPageView* pPV = mpView->GetSdrPageView();
+ if (!pPV)
+ return;
Rectangle aTmpRect(mpView->GetAllMarkedRect());
- mpView->GetSdrPageView()->LogicToPagePos(aTmpRect);
+ pPV->LogicToPagePos(aTmpRect);
maRect = basegfx::B2DRange(aTmpRect.Left(), aTmpRect.Top(), aTmpRect.Right(), aTmpRect.Bottom());
Rectangle aTmpRect2(mpView->GetWorkArea());
- mpView->GetSdrPageView()->LogicToPagePos(aTmpRect2);
+ pPV->LogicToPagePos(aTmpRect2);
maWorkArea = basegfx::B2DRange(aTmpRect2.Left(), aTmpRect2.Top(), aTmpRect2.Right(), aTmpRect2.Bottom());
const Fraction aUIScale(mpView->GetModel()->GetUIScale());