diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-06-10 15:19:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-06-10 18:39:41 +0200 |
commit | 5fe53e6b2e951f2f8f834386827bf96610d6acb6 (patch) | |
tree | f6fecda37bcddac952df9eb8b8633075d5a9170e | |
parent | 2b6caa40d682e04e47a03d426e1359cdd74efbdc (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |