Kaydet (Commit) d22adee3 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

afl-eventtesting: deref of null GetSdrPageView

Change-Id: Iec3266746c78e58e3c3a094e6511d79dadc4e4c6
(cherry picked from commit 27ccddf5)
Reviewed-on: https://gerrit.libreoffice.org/19465Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
(cherry picked from commit 253b3f72)
üst 56ee84c5
......@@ -1181,12 +1181,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());
......
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