From 27ccddf5034ec9e80a5adf93c630247bb5807676 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Oct 2015 14:16:50 +0100 Subject: afl-eventtesting: deref of null GetSdrPageView Change-Id: Iec3266746c78e58e3c3a094e6511d79dadc4e4c6 --- svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'svx') 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()); -- cgit