diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 16:53:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-12-10 16:53:32 +0000 |
commit | 67296edb5c8c7cbb185fe2d31c46eadc5dd927b8 (patch) | |
tree | 183a967f5059be35cc2ddfd7d8af18bd461e2e63 /lotuswordpro | |
parent | 61f55b25c62eaa2714ad8b991edcf54be5e41e0c (diff) |
this needs to be a dynamic cast
Change-Id: Id606e58292a25309adb67cf05cc9b9a237e83f81
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribbreaks.cxx | 2 |
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) ) |