sw/source/uibase/utlui/content.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 706a138ea4db2f9c1845d62e5f6137b470d9532f
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Jan 28 08:23:41 2026 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Jan 28 12:38:58 2026 +0100

    cid#1680674 Using a moved object
    
    in the other cases we accumulate the full set of ranges before
    adding as an overlay
    
    Change-Id: I1811bd085ddd95fd4494d5edb5436d7b35a75193
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198268
    Reviewed-by: Caolán McNamara <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/uibase/utlui/content.cxx 
b/sw/source/uibase/utlui/content.cxx
index 8a7151257669..ff58a5f2d0bb 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -8315,8 +8315,8 @@ void 
SwContentTree::BringTextTOXMarksToAttention(std::vector<const SwTextAttr*>&
                 lcl_CalcOverlayRanges(pFrame, pFrame, aStartPos, aEndPos, 
aRanges);
             }
         }
-        OverlayObject(std::move(aRanges));
     }
+    OverlayObject(std::move(aRanges));
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to