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>
diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index 23f9109..7dc2953 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;