diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 11:48:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 11:48:47 +0000 |
commit | d4d247866eac108162f43dae2c6ddbd9c12382a6 (patch) | |
tree | eb0b6b921788a4f16bb5c1ab964339e10921fb29 /lotuswordpro | |
parent | 65deab68f7918c82026951b04a414eefee2683b2 (diff) |
guard against missing geometry
Change-Id: I6b2945f1d5a1654f6b5d6a5f5287b4cb9514d97c
Diffstat (limited to 'lotuswordpro')
-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 5fa4e2cdf24e..d5d1797343ae 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; } |