summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpfribbreaks.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-10 16:53:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-10 16:53:32 +0000
commit67296edb5c8c7cbb185fe2d31c46eadc5dd927b8 (patch)
tree183a967f5059be35cc2ddfd7d8af18bd461e2e63 /lotuswordpro/source/filter/lwpfribbreaks.cxx
parentadd a reference to ensure pPara exists until end of scope (diff)
downloadcore-67296edb5c8c7cbb185fe2d31c46eadc5dd927b8.tar.gz
core-67296edb5c8c7cbb185fe2d31c46eadc5dd927b8.zip
this needs to be a dynamic cast
Change-Id: Id606e58292a25309adb67cf05cc9b9a237e83f81
Diffstat (limited to 'lotuswordpro/source/filter/lwpfribbreaks.cxx')
-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 882694e6bd22..fa94993cacb1 100644
--- a/lotuswordpro/source/filter/lwpfribbreaks.cxx
+++ b/lotuswordpro/source/filter/lwpfribbreaks.cxx
@@ -81,7 +81,7 @@ void LwpFribColumnBreak::RegisterBreakStyle(LwpPara * pPara)
//if (static_cast<LwpStory*>(pPara->GetStoryID()->obj())
// ->GetCurrentLayout()->GetNumCols() == 1)
//New code
- LwpStory* pStory = static_cast<LwpStory*>(pPara->GetStoryID().obj().get());
+ LwpStory* pStory = dynamic_cast<LwpStory*>(pPara->GetStoryID().obj().get());
LwpPageLayout* pCurLayout = pStory ? pStory->GetCurrentLayout() : nullptr;
if( pCurLayout && (pCurLayout->GetNumCols() == 1) )