[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Thu Dec 10 08:54:36 PST 2015
lotuswordpro/source/filter/lwpfribbreaks.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7d40531c1b92d1a00f08943bd9a5f9c7442db5c0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Dec 10 16:53:32 2015 +0000
this needs to be a dynamic cast
Change-Id: Id606e58292a25309adb67cf05cc9b9a237e83f81
(cherry picked from commit 67296edb5c8c7cbb185fe2d31c46eadc5dd927b8)
diff --git a/lotuswordpro/source/filter/lwpfribbreaks.cxx b/lotuswordpro/source/filter/lwpfribbreaks.cxx
index 882694e..fa94993 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) )
More information about the Libreoffice-commits
mailing list