summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/calcmove.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/calcmove.cxx')
-rw-r--r--sw/source/core/layout/calcmove.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/calcmove.cxx b/sw/source/core/layout/calcmove.cxx
index 0d9bbd2be6a1..1ceaf5594a9d 100644
--- a/sw/source/core/layout/calcmove.cxx
+++ b/sw/source/core/layout/calcmove.cxx
@@ -617,7 +617,7 @@ static void lcl_CheckObjects( SwSortedObjs* pSortedObjs, SwFrm* pFrm, long& rBot
// entries.
SwAnchoredObject* pObj = (*pSortedObjs)[i];
long nTmp = 0;
- if ( pObj->ISA(SwFlyFrm) )
+ if ( dynamic_cast<const SwFlyFrm*>( pObj) != nullptr )
{
SwFlyFrm *pFly = static_cast<SwFlyFrm*>(pObj);
if( pFly->Frm().Top() != FAR_AWAY &&
@@ -940,7 +940,7 @@ bool SwContentFrm::MakePrtArea( const SwBorderAttrs &rAttrs )
// <SwSortedObjs> entries
SwAnchoredObject* pObj = (*GetDrawObjs())[i];
const SwFrameFormat& rFormat = pObj->GetFrameFormat();
- const bool bFly = pObj->ISA(SwFlyFrm);
+ const bool bFly = dynamic_cast<const SwFlyFrm*>( pObj) != nullptr;
if ((bFly && (FAR_AWAY == pObj->GetObjRect().Width()))
|| rFormat.GetFrmSize().GetWidthPercent())
{