diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-17 16:32:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-17 16:33:48 +0000 |
commit | 86689c5ceeb238bab480f476e5aa768d082d2f58 (patch) | |
tree | 5a192d4395c46cfc7fb45a98ab2782c271f5a501 /sw/source/uibase | |
parent | 080f355f11ee3422e9512815efd9f8d7eb896d32 (diff) |
return of cid#982483 Dereference after null check
with
commit e41d23abb03a0c5a5c50be290c2265513e178889
Date: Tue Mar 15 19:43:36 2016 +0100
tdf#84953 Only resize proportionally when dragging on a corner
Change-Id: I7575b17e63e3f6f767169eb38d54f8792ff970c3
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 10130879ad3b..a354e1b6a188 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -4084,14 +4084,14 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt) rSh.GetSelectionType() & nsSelectionType::SEL_OLE; bool bisResize = g_eSdrMoveHdl != HDL_MOVE; - // Resize proportionally when media is selected and the user drags on a corner - const Point aSttPt(PixelToLogic(m_aStartPos)); - SdrHdl* pHdl = pSdrView->PickHandle(aSttPt); - if (pHdl) - bResizeKeepRatio = bResizeKeepRatio && pHdl->IsCornerHdl(); - if (pSdrView) { + // Resize proportionally when media is selected and the user drags on a corner + const Point aSttPt(PixelToLogic(m_aStartPos)); + SdrHdl* pHdl = pSdrView->PickHandle(aSttPt); + if (pHdl) + bResizeKeepRatio = bResizeKeepRatio && pHdl->IsCornerHdl(); + if (pSdrView->GetDragMode() == SDRDRAG_CROP) bisResize = false; if (rMEvt.IsShift()) |