[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Mon Aug 25 06:58:42 PDT 2014


 sw/source/core/layout/frmtool.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0dd209b08189f1da6ccc80984f195baa1abb303c
Author: Stephan Bergmann <sbergman at 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


More information about the Libreoffice-commits mailing list