summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 16:41:26 +0000
committerMichael Stahl <mstahl@redhat.com>2015-12-10 15:24:18 +0000
commit6799aa79069f2367c2b84160b9e17646da52fc2f (patch)
tree348fbd2d257649347f5bb3c0767b2ca442df8a36
parentguard against no default text style (diff)
downloadcore-6799aa79069f2367c2b84160b9e17646da52fc2f.tar.gz
core-6799aa79069f2367c2b84160b9e17646da52fc2f.zip
guard against missing SuperTable
Change-Id: Ic7cc6c807905e0c4ffbf2a3f009b27be6100cdf0 (cherry picked from commit 0cde3ca230364492aa6b7f634b97178164268728) Reviewed-on: https://gerrit.libreoffice.org/20542 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--lotuswordpro/source/filter/lwpfribtable.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfribtable.cxx b/lotuswordpro/source/filter/lwpfribtable.cxx
index 4adb3ac2cf93..86c70ea62537 100644
--- a/lotuswordpro/source/filter/lwpfribtable.cxx
+++ b/lotuswordpro/source/filter/lwpfribtable.cxx
@@ -78,7 +78,9 @@ LwpSuperTableLayout* LwpFribTable::GetSuperTable()
void LwpFribTable::RegisterNewStyle()
{
- GetSuperTable()->RegisterNewStyle();
+ LwpSuperTableLayout* pSuper = GetSuperTable();
+ if (pSuper)
+ pSuper->RegisterNewStyle();
XFParaStyle* pOldStyle = m_pPara->GetXFParaStyle();
if(HasNextFrib())
{