summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-19 19:28:52 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-20 15:37:01 +0200
commite98801c0fe67d4c5b25827041a2051858a66cc1c (patch)
treec0110ac163c867ab74915a571c574daecd4ebabb
parent30f141ecd7bb7d92047eb501bc7902d74e7742bb (diff)
if this could happen, then this loop would never end
so in practice it isn't happening. (Or the --i should be conditional on something getting removed) Change-Id: I0d74a46eced77c5bb1474c60c26e39061de791a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175243 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sw/source/core/text/porfly.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/porfly.cxx b/sw/source/core/text/porfly.cxx
index 6cfcec2962b4..54c0dc4f7ac7 100644
--- a/sw/source/core/text/porfly.cxx
+++ b/sw/source/core/text/porfly.cxx
@@ -180,7 +180,7 @@ void SwTextFrame::MoveFlyInCnt(SwTextFrame *pNew,
RemoveFly( pFlyFrame );
pNew->AppendFly( pFlyFrame );
}
- else if ( dynamic_cast< const SwAnchoredDrawObject *>( pAnchoredObj ) != nullptr )
+ else
{
RemoveDrawObj( *pAnchoredObj );
pNew->AppendDrawObj( *pAnchoredObj );