diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 15:40:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-07 21:50:07 +0100 |
commit | 5dfe9e93fa4ea8e41dfedf1e8f168c54d28ae2d9 (patch) | |
tree | cdd2bc93aa91d460dac36fae14c767e539dc9b09 /lotuswordpro/source | |
parent | d9bb43a31df7d92118713a7f7d09879285a991ac (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/source')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 5 |
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 |