diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-09 16:31:40 +0000 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-12-15 09:29:40 +0000 |
commit | af926e97b64eb9b03c04a9be1faf671a65b2c0c1 (patch) | |
tree | c4f271ee07d519d7b51a36977332264452b25fef /lotuswordpro/source | |
parent | ea854163776df3b93ac3ab281babff8f05553bc5 (diff) |
guard against missing paragraph storylibreoffice-5-0-4
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)
Reviewed-on: https://gerrit.libreoffice.org/20696
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribsection.cxx | 3 |
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) { |