summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-07 15:40:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-07 21:50:07 +0100
commit5dfe9e93fa4ea8e41dfedf1e8f168c54d28ae2d9 (patch)
treecdd2bc93aa91d460dac36fae14c767e539dc9b09 /lotuswordpro
parentd9bb43a31df7d92118713a7f7d09879285a991ac (diff)
ofz#6092 Null-dereference
Change-Id: Ic9a31b4819c07e82f6b90c4db1903ec5e27044be Reviewed-on: https://gerrit.libreoffice.org/49364 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index 924da8b7ab08..f8793328cd9b 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -330,9 +330,8 @@ void LwpSuperTableLayout::ApplyWatermark(XFTableStyle *pTableStyle)
void LwpSuperTableLayout::ApplyAlignment(XFTableStyle * pTableStyle)
{
LwpPoint aPoint;
- if (GetGeometry())
- aPoint = GetGeometry()->GetOrigin();
- //LwpPoint aPoint = GetOrigin();
+ if (LwpLayoutGeometry* pGeometry = GetGeometry())
+ aPoint = pGeometry->GetOrigin();
double dXOffset = LwpTools::ConvertFromUnitsToMetric(aPoint.GetX());
// add left padding to alignment distance