Kaydet (Commit) 7d40531c authored tarafından Caolán McNamara's avatar Caolán McNamara

this needs to be a dynamic cast

Change-Id: Id606e58292a25309adb67cf05cc9b9a237e83f81
(cherry picked from commit 67296edb)
üst 86a52d6b
......@@ -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) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment