summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 16:31:40 +0000
committerAndras Timar <andras.timar@collabora.com>2015-12-10 16:14:37 +0100
commita2c8f6c31257423de0e3dc5e0fe4049bd6d59d76 (patch)
tree2b613ce6a5e890c8872d7c53517baeb2102ef440
parentcb2b390ad9e5a96a3b6118a4b263f420d428f7f1 (diff)
guard against missing paragraph story
Change-Id: I217c0aedca4eadc347c103899d96c70cf9606038 (cherry picked from commit dbc830aecc722d34971d773470da478ef4c38714) Reviewed-on: https://gerrit.libreoffice.org/20539 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit d4b850fe8bc45bfb018f0a8750e09a436c49d7df)
-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 b8704880bfda..e24faf854c91 100644
--- a/lotuswordpro/source/filter/lwpfribsection.cxx
+++ b/lotuswordpro/source/filter/lwpfribsection.cxx
@@ -164,9 +164,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)
{