[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - svx/source

Caolán McNamara caolanm at redhat.com
Wed Aug 26 08:36:53 PDT 2015


 svx/source/svdraw/svdoedge.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e30572fefd82f5ac112b050fd9912bbaaa8c829b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Aug 26 14:44:32 2015 +0100

    there might be no model
    
    Change-Id: I9c384587c127ca077803bf8aae63d0e54eda6aaf
    (cherry picked from commit be95c7430d2fd9858f41ee8e8882d987a5bbe749)
    Reviewed-on: https://gerrit.libreoffice.org/18025
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index ed8c820..4832e0a 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -2264,7 +2264,7 @@ void SdrEdgeObj::NbcResize(const Point& rRefPnt, const Fraction& aXFact, const F
     ResizeXPoly(*pEdgeTrack,rRefPnt,aXFact,aYFact);
 
     // if resize is not from paste, forget user distances
-    if(!GetModel()->IsPasteResize())
+    if (!GetModel() || !GetModel()->IsPasteResize())
     {
         aEdgeInfo.aObj1Line2 = Point();
         aEdgeInfo.aObj1Line3 = Point();


More information about the Libreoffice-commits mailing list