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:54:04 +0000 |
commit | 7d40531c1b92d1a00f08943bd9a5f9c7442db5c0 (patch) | |
tree | 82bd4a1e5b7b6d899924ce1a9bf302730b32d39e /lotuswordpro | |
parent | 86a52d6bb9ba75a1a56589bce0cb51a72a46ed19 (diff) |
this needs to be a dynamic cast
Change-Id: Id606e58292a25309adb67cf05cc9b9a237e83f81
(cherry picked from commit 67296edb5c8c7cbb185fe2d31c46eadc5dd927b8)
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) ) |