diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:42:04 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-12-10 15:16:00 +0000 |
commit | bee28cc24a864f6953dcda65df53e34fbc10cb6e (patch) | |
tree | 676ad39f0cf66238f81e5f5bac3a594adfd91b06 | |
parent | d59f01ff2619176e8682650398166578665c0b77 (diff) |
guard against missing Foundry
Change-Id: I9147dc2bab312639a04d2e822cf99745d38d3b8d
(cherry picked from commit 22ee3194c930682ad8ac7f994084e877aa00d191)
Reviewed-on: https://gerrit.libreoffice.org/20575
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-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 08b76150a4ff..95e49d7b58c8 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -267,8 +267,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(); |