From 9ad6f07e0b5494e55d70642120f173961845ce30 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 10 Dec 2015 14:59:22 +0000 Subject: don't trust that this is what its supposed to be Change-Id: I8ae6252039729a1cba8c2fe34f72222c94e3e449 --- lotuswordpro/source/filter/lwpfribbreaks.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(m_Layout.obj().get()); + LwpPageLayout* pLayout = dynamic_cast(m_Layout.obj().get()); if(pLayout) { m_pMasterPage = new LwpMasterPage(pPara, pLayout); -- cgit v1.2.3