summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 16:31:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-09 16:31:55 +0000
commitdbc830aecc722d34971d773470da478ef4c38714 (patch)
tree265a6037e7f9702c253f6e2b32437aef65cc4847 /lotuswordpro/source/filter
parentab5d730b2a4276d261c1ef11f94b16d0936acf5c (diff)
guard against missing paragraph story
Change-Id: I217c0aedca4eadc347c103899d96c70cf9606038
Diffstat (limited to 'lotuswordpro/source/filter')
-rw-r--r--lotuswordpro/source/filter/lwpfribsection.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfribsection.cxx b/lotuswordpro/source/filter/lwpfribsection.cxx
index bafaefc0ba15..899461a4d440 100644
--- a/lotuswordpro/source/filter/lwpfribsection.cxx
+++ b/lotuswordpro/source/filter/lwpfribsection.cxx
@@ -161,9 +161,8 @@ void LwpFribSection::ParseSection()
m_pMasterPage->ParseSection(this);
}
}
- else
+ else if (LwpStory* pStory = static_cast<LwpStory*>(m_pPara->GetStoryID().obj().get()))
{
- LwpStory* pStory = static_cast<LwpStory*> ( m_pPara->GetStoryID().obj().get() );
rtl::Reference<LwpObject> xObj(m_Section.obj());
if (xObj.is() && xObj->GetTag() == VO_INDEXSECTION)
{