summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-13 11:04:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-13 11:05:06 +0000
commit32368647339bf16c43899b29627030eb64893357 (patch)
treeccadfeaaf70eb1340153eb9e8c8fde6d711c3e77 /lotuswordpro
parentc617765c305e43f699487016b02afaf5f65e4d64 (diff)
protect against missing Foundry
Change-Id: Ie5c0317f842258fe42f894dbace0ea0e328f288a (cherry picked from commit ddc7d96a399822c2f29dcaca8222dfb96c383576)
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index 35476618df7e..e7fd45d272db 100644
--- a/lotuswordpro/source/filter/lwppagelayout.cxx
+++ b/lotuswordpro/source/filter/lwppagelayout.cxx
@@ -576,6 +576,8 @@ sal_Int32 LwpPageLayout::GetPageNumber(sal_uInt16 nLayoutNumber)
{
sal_Int16 nPageNumber = -1;
LwpFoundry* pFoundry = this->GetFoundry();
+ if (!pFoundry)
+ return nPageNumber;
LwpDocument* pDoc = pFoundry->GetDocument();
LwpDLVListHeadTailHolder* pHeadTail = dynamic_cast<LwpDLVListHeadTailHolder*>(pDoc->GetPageHintsID().obj().get());
if(!pHeadTail) return nPageNumber;