diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:42:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:44:10 +0000 |
commit | 8edd7897ac1309ee636c7b7e21bc157440c10caf (patch) | |
tree | 8ae209aab750a88b795c0476936b1018eee0391a /lotuswordpro | |
parent | cb6f34b370da1d45e1c2b945b60cbcaf7b9c3a45 (diff) |
guard against missing Foundry
Change-Id: I9147dc2bab312639a04d2e822cf99745d38d3b8d
(cherry picked from commit 22ee3194c930682ad8ac7f994084e877aa00d191)
Reviewed-on: https://gerrit.libreoffice.org/20573
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/lwppagelayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx index 8499126d1e49..76748689e223 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -264,8 +264,8 @@ void LwpPageLayout::ParseBackColor(XFPageMaster* pm1) void LwpPageLayout::ParseFootNoteSeparator(XFPageMaster * pm1) { //Get the footnoteoptions for the root document - LwpDocument* pDocument = m_pFoundry->GetDocument(); - if(pDocument) + LwpDocument* pDocument = m_pFoundry ? m_pFoundry->GetDocument() : nullptr; + if (pDocument) { LwpObjectID* pFontnodeId = pDocument->GetValidFootnoteOpts(); |