sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9af76fad5a3368532dce7a1c1285a95a10275aa1
Author:     Mike Kaganski <[email protected]>
AuthorDate: Thu Jan 22 10:48:09 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Thu Jan 22 16:00:10 2026 +0100

    Move variable into proper scope
    
    Change-Id: I9a4bd89303c064216fe23efb81f15c5d6edae9d9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197795
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx 
b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
index 71c66cf1cfca..bc1faa5a1ca2 100644
--- a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
@@ -1265,9 +1265,9 @@ void SwToContentAnchoredObjectPosition::CalcOverlap(const 
SwTextFrame* pAnchorFr
             continue;
         }
 
-        SwFlyFrame* pAnchoredObjFly = pAnchoredObj->DynCastFlyFrame();
         if (bSplitFly)
         {
+            SwFlyFrame* pAnchoredObjFly = pAnchoredObj->DynCastFlyFrame();
             if (!pAnchoredObjFly)
             {
                 // This is a split fly, then overlap is only checked against 
other split flys.

Reply via email to