summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwptoc.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 15:34:35 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 15:35:04 +0000
commit7f3ea5e849356a4f1567121059570ce8ed28fedf (patch)
tree0ea9e1447177009567a45a2696c956097d875987 /lotuswordpro/source/filter/lwptoc.cxx
parent3228b30f76b7d734a5bb5b825ee1cd517a893639 (diff)
guard against missing Foundry
Change-Id: I7e76589689d2c9e79a8823d594e8f3ca030e26cf (cherry picked from commit 6093ba6065ea339c5c6de162294eabf0eebe3c80)
Diffstat (limited to 'lotuswordpro/source/filter/lwptoc.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptoc.cxx b/lotuswordpro/source/filter/lwptoc.cxx
index 905e37978b8d..3f31da26e409 100644
--- a/lotuswordpro/source/filter/lwptoc.cxx
+++ b/lotuswordpro/source/filter/lwptoc.cxx
@@ -130,7 +130,7 @@ void LwpTocSuperLayout::RegisterStyle()
LwpSuperTableLayout::RegisterStyle();
// Get font info of default text style and set into tab style
- const LwpObjectID *pDefaultTextStyle = m_pFoundry->GetDefaultTextStyle();
+ const LwpObjectID *pDefaultTextStyle = m_pFoundry ? m_pFoundry->GetDefaultTextStyle() : nullptr;
XFParaStyle* pBaseStyle = pDefaultTextStyle ? static_cast<XFParaStyle*>(m_pFoundry->GetStyleManager()->GetStyle(*pDefaultTextStyle)) : nullptr;
XFTextStyle*pTextStyle = new XFTextStyle;
if (pBaseStyle)