[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Thu Mar 17 16:34:13 UTC 2016


 sw/source/uibase/docvw/edtwin.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 86689c5ceeb238bab480f476e5aa768d082d2f58
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 17 16:32:44 2016 +0000

    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

diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 1013087..a354e1b 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())


More information about the Libreoffice-commits mailing list