Kaydet (Commit) 0dd209b0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Properly downcast to any type of SwFlowFrm, not just SwCntntFrm

Change-Id: I6b3ade33c282823f4868c1fea5906d71eaeb5568
üst d66159c6
...@@ -2539,7 +2539,7 @@ void RestoreCntnt( SwFrm *pSav, SwLayoutFrm *pParent, SwFrm *pSibling, bool bGro ...@@ -2539,7 +2539,7 @@ void RestoreCntnt( SwFrm *pSav, SwLayoutFrm *pParent, SwFrm *pSibling, bool bGro
pSibling->mpNext = pSav; pSibling->mpNext = pSav;
pSibling->_InvalidatePrt(); pSibling->_InvalidatePrt();
pSibling->InvalidatePage( pPage ); pSibling->InvalidatePage( pPage );
if ( ((SwCntntFrm*)pSibling)->GetFollow() ) if ( dynamic_cast<SwFlowFrm*>(pSibling)->GetFollow() )
pSibling->Prepare( PREP_CLEAR, 0, false ); pSibling->Prepare( PREP_CLEAR, 0, false );
} }
else else
......
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