summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-09 14:31:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-09 14:32:03 +0100
commit99bd0d846fd2daf4905b986cae4cfb31fde04964 (patch)
tree9c256e0c6b9ae8639c3977ec63614586c9235b84
parent89de7eef5090c5efdca1314f8838bdc977001e5d (diff)
Resolves: fdo#51908 drop word/char count cache when numbering rule changes
Word Count doesn't update immediately when Numbering is applied or removed Change-Id: I44ac2313cdeef92e6394b86316ff1037fc8d8f18
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 9848b60c04b8..dcacdb4f280e 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -2389,6 +2389,8 @@ void SwTxtNode::NumRuleChgd()
SvxLRSpaceItem& rLR = (SvxLRSpaceItem&)GetSwAttrSet().GetLRSpace();
NotifyClients( &rLR, &rLR );
}
+
+ SetWordCountDirty( true );
}
// -> #i27615#
@@ -3840,6 +3842,8 @@ void SwTxtNode::RemoveFromList()
mpList = 0;
delete mpNodeNum;
mpNodeNum = 0L;
+
+ SetWordCountDirty( true );
}
}