sw/source/core/unocore/unoobj2.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-)
New commits: commit f151ba5ebc8662d5459eacb1c5d6f01a4c826f26 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Aug 2 11:58:29 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed Aug 2 13:35:48 2023 +0200 sw floattable: simplify collecting frames at node with layout See <https://gerrit.libreoffice.org/c/core/+/155081/2#message-504c4b6d36580e30bf79498a4ca5e37573194dba>, one dynamic cast is enough. Change-Id: I1f57b1b64fb501e522c949e013160df79ea55094 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155218 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx index 472babcd8243..04f5ed1e33d5 100644 --- a/sw/source/core/unocore/unoobj2.cxx +++ b/sw/source/core/unocore/unoobj2.cxx @@ -128,16 +128,12 @@ struct FrameClientSortListLess if (nAnchorType == RndStdIds::FLY_AT_PARA) { - SwFlyFrame* pFly = pAnchoredObj->DynCastFlyFrame(); - if (pFly) + auto pFlyAtContentFrame = dynamic_cast<SwFlyAtContentFrame*>(pAnchoredObj); + if (pFlyAtContentFrame && pFlyAtContentFrame->IsFollow()) { - auto pFlyAtContentFrame = pFly->DynCastFlyAtContentFrame(); - if (pFlyAtContentFrame && pFlyAtContentFrame->IsFollow()) - { - // We're collecting frame formats, ignore non-master fly frames to prevent - // duplication. - continue; - } + // We're collecting frame formats, ignore non-master fly frames to prevent + // duplication. + continue; } }