summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porfly.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/porfly.cxx')
-rw-r--r--sw/source/core/text/porfly.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx
index 065777d29275..5ae1943ffa51 100644
--- a/sw/source/core/text/porfly.cxx
+++ b/sw/source/core/text/porfly.cxx
@@ -163,12 +163,12 @@ void SwTextFrm::MoveFlyInCnt( SwTextFrm *pNew, sal_Int32 nStart, sal_Int32 nEnd
const sal_Int32 nIdx = pPos->nContent.GetIndex();
if ( nIdx >= nStart && nEnd > nIdx )
{
- if ( pAnchoredObj->ISA(SwFlyFrm) )
+ if ( dynamic_cast< const SwFlyFrm *>( pAnchoredObj ) != nullptr )
{
RemoveFly( static_cast<SwFlyFrm*>(pAnchoredObj) );
pNew->AppendFly( static_cast<SwFlyFrm*>(pAnchoredObj) );
}
- else if ( pAnchoredObj->ISA(SwAnchoredDrawObject) )
+ else if ( dynamic_cast< const SwAnchoredDrawObject *>( pAnchoredObj ) != nullptr )
{
RemoveDrawObj( *pAnchoredObj );
pNew->AppendDrawObj( *pAnchoredObj );