diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 15:34:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 15:34:50 +0000 |
commit | 6093ba6065ea339c5c6de162294eabf0eebe3c80 (patch) | |
tree | eefc18a1b5a3b600fcbf33adf57a0c2965be11e6 /lotuswordpro | |
parent | f513a173152cb1c1afd7b700d1b264bc2ea6a5a8 (diff) |
guard against missing Foundry
Change-Id: I7e76589689d2c9e79a8823d594e8f3ca030e26cf
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwptoc.cxx | 2 |
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) |