sw/source/core/layout/tabfrm.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit ba0876bdca6736d391580e08b13705bb42b1cde8 Author: Mike Kaganski <[email protected]> AuthorDate: Sun Jan 25 09:52:31 2026 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Sun Jan 25 11:59:35 2026 +0100 Drop unneeded cast FindAnchorCharFrame is a method of SwAnchoredObject, so pFly can be used just as well. Change-Id: Iee763119dd4bee6ec407d91363c0e27a3fb70d2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198061 Reviewed-by: Mike Kaganski <[email protected]> Tested-by: Jenkins diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 5acaa759b55f..6b71fc26c91b 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -2930,9 +2930,7 @@ void SwTabFrame::MakeAll(vcl::RenderContext* pRenderContext) SwFlyFrame* pFly = FindFlyFrame(); if (!pIndPrev && pFly && pFly->IsFlySplitAllowed()) { - auto pFlyAtContent = static_cast<SwFlyAtContentFrame*>(pFly); - SwFrame* pAnchor = pFlyAtContent->FindAnchorCharFrame(); - if (pAnchor) + if (SwFrame* pAnchor = pFly->FindAnchorCharFrame()) { // If the anchor of the split has a previous frame, we're allowed to move forward. pIndPrev = pAnchor->GetIndPrev();
