summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-10-14 15:14:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-10-14 18:48:30 +0200
commitcd3c16fbcb4f8e5e4c4448bc7cda96e8476d6aec (patch)
tree76c5604906fbb2ac1db4abcf70f191a6a7342630
parent3565c3c94c6bdad5ab0913d979fd4e97547488e6 (diff)
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.grandin@collabora.co.uk>
-rw-r--r--sw/source/core/doc/number.cxx3
1 files changed, 3 insertions, 0 deletions
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;