sw/source/core/doc/docbm.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 5fe53e6b2e951f2f8f834386827bf96610d6acb6
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jun 10 15:19:49 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Jun 10 18:39:41 2024 +0200

    tdf#144208 speedup doc with lots of redline(4)
    
    exit early in DelBookmarks if the redlines are not in the range we need
    to fix
    
    Change-Id: I4e558835ec2a5bd6a92b2da29a94db16e52064ae
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168640
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 6f8a091f6741..aef420965ec7 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -2100,6 +2100,8 @@ void DelBookmarks(
                     pREnd->AssignEndIndex( *pCNd );
             }
         }
+        if( lcl_Lower( *pREnd, rStt, oStartContentIdx ) )
+            break;
     }
 }
 

Reply via email to