sw/source/core/layout/frmtool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0dd209b08189f1da6ccc80984f195baa1abb303c Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Aug 25 15:58:09 2014 +0200 Properly downcast to any type of SwFlowFrm, not just SwCntntFrm Change-Id: I6b3ade33c282823f4868c1fea5906d71eaeb5568 diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index e1cf3f4..7eca28a 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -2539,7 +2539,7 @@ void RestoreCntnt( SwFrm *pSav, SwLayoutFrm *pParent, SwFrm *pSibling, bool bGro pSibling->mpNext = pSav; pSibling->_InvalidatePrt(); pSibling->InvalidatePage( pPage ); - if ( ((SwCntntFrm*)pSibling)->GetFollow() ) + if ( dynamic_cast<SwFlowFrm*>(pSibling)->GetFollow() ) pSibling->Prepare( PREP_CLEAR, 0, false ); } else _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits