diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 11:48:47 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:46 +0100 |
commit | 5944b2ea8a66d9c613920d65bed85e66264752d2 (patch) | |
tree | 6e821a8f31679670c6d76f5eac4d17799f1ff232 /lotuswordpro/source | |
parent | 51d1071053319194781f627d91acfa4c2e8c44c4 (diff) |
guard against missing geometry
Change-Id: I6b2945f1d5a1654f6b5d6a5f5287b4cb9514d97c
(cherry picked from commit d4d247866eac108162f43dae2c6ddbd9c12382a6)
(cherry picked from commit 6a9f91915afbcff71121b3485376ab6f1fdcecee)
Reviewed-on: https://gerrit.libreoffice.org/20596
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 8f2cfef6bc3d876cae6718f31cc45fde499c0a52)
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index 8d0cce5ab842..871e886c717d 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -1044,10 +1044,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; } |