diff options
-rw-r--r-- | lotuswordpro/source/filter/lwppagelayout.cxx | 2 |
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; |