summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 14:59:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 15:00:17 +0000
commit33a230c4999ef151dd54177cada36886bd86f163 (patch)
treeea7ce8282179e8759be8514b216a3da05bc03440
parentd61dd2ef7cee491115d4528a97f56582d4af3e37 (diff)
don't trust that this is what its supposed to be
Change-Id: I8ae6252039729a1cba8c2fe34f72222c94e3e449 (cherry picked from commit 9ad6f07e0b5494e55d70642120f173961845ce30)
-rw-r--r--lotuswordpro/source/filter/lwpfribbreaks.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfribbreaks.cxx b/lotuswordpro/source/filter/lwpfribbreaks.cxx
index 233033058b20..882694e6bd22 100644
--- a/lotuswordpro/source/filter/lwpfribbreaks.cxx
+++ b/lotuswordpro/source/filter/lwpfribbreaks.cxx
@@ -126,7 +126,7 @@ void LwpFribPageBreak::RegisterBreakStyle(LwpPara* pPara)
XFParaStyle* pBaseStyle = pPara->GetXFParaStyle();
if (pBaseStyle == nullptr) return;
- LwpPageLayout* pLayout = static_cast<LwpPageLayout*>(m_Layout.obj().get());
+ LwpPageLayout* pLayout = dynamic_cast<LwpPageLayout*>(m_Layout.obj().get());
if(pLayout)
{
m_pMasterPage = new LwpMasterPage(pPara, pLayout);