diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 09:42:04 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-12-10 16:14:43 +0100 |
commit | e7a4f50de186a2b90c067a0246e6b8cb13373e7d (patch) | |
tree | 964f70480c24cf7c0e809e83f2c436565b2b02ed /lotuswordpro | |
parent | 4e90b438937d18ea37b4d10c52fa0803893fd869 (diff) |
guard against missing Foundry
Change-Id: I9147dc2bab312639a04d2e822cf99745d38d3b8d
(cherry picked from commit 22ee3194c930682ad8ac7f994084e877aa00d191)
Reviewed-on: https://gerrit.libreoffice.org/20574
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
(cherry picked from commit 479b1863a546c6022d058f27745b240dba9e1c05)
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 3eef7584d882..56048634845c 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(); |