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

New commits:
commit cd3c16fbcb4f8e5e4c4448bc7cda96e8476d6aec
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri Oct 14 15:14:13 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri Oct 14 18:48:30 2022 +0200

    tdf#129101 CTRL+A & Cut very slow
    
    avoid repeated invalidation of number tree, shaves 90% time off
    
    Change-Id: I051f6a3fefc0b22c33c03cec41a3327fc3460f84
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141373
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index 23f910960d93..7dc2953608cf 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -957,6 +957,9 @@ SvxNumRule SwNumRule::MakeSvxNumRule() const
 
 void SwNumRule::SetInvalidRule(bool bFlag)
 {
+    if (mbInvalidRuleFlag == bFlag)
+        return;
+
     if (bFlag)
     {
         o3tl::sorted_vector< SwList* > aLists;

Reply via email to