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

Caolán McNamara caolanm at redhat.com
Thu Dec 10 03:49:18 PST 2015


 lotuswordpro/source/filter/lwplayout.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d4d247866eac108162f43dae2c6ddbd9c12382a6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 10 11:48:47 2015 +0000

    guard against missing geometry
    
    Change-Id: I6b2945f1d5a1654f6b5d6a5f5287b4cb9514d97c

diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx
index 5fa4e2c..d5d17973 100644
--- a/lotuswordpro/source/filter/lwplayout.cxx
+++ b/lotuswordpro/source/filter/lwplayout.cxx
@@ -997,10 +997,10 @@ sal_Int32 LwpMiddleLayout::DetermineWidth()
     {
         assert(false);
     }
-    else
+    else if (LwpLayoutGeometry* pGeo = GetGeometry())
     {
         m_nAttributes3 |= STYLE3_WIDTHVALID;
-        return GetGeometry()->GetWidth();
+        return pGeo->GetWidth();
     }
     return 0;
 }


More information about the Libreoffice-commits mailing list