diff options
authorMuhammad Haggag <>2012-06-09 23:48:27 +0200
committerMichael Stahl <>2012-06-11 13:06:05 +0200
commitfbfc736fcdf06bd2d02aac7fe83cd3080c897c27 (patch)
parentc9749c917e67a70a0cb283e180fd1c05f0cf3c2a (diff)
fdo#50141: Character count (with spaces) incorrect with numbering on.
There was a typo in the character counting code of text nodes. When a numbered list is detected, the code attempts to add the character count of the "item number" to the total count, but ends up overwriting it instead (uses '=' instead of '+='). This resulted in the item number strings to be the only ones counted in a numbered list. Change-Id: I9d96311065f66026dd4f05d3cd5ae61e2c0dafb4 (cherry picked from commit a585863f013aa4207270e11f5e031126adf1ed4a) Signed-off-by: Michael Stahl <>
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index d15321292fe7..5a7ae5e801aa 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1892,7 +1892,7 @@ void SwTxtNode::CountWords( SwDocStat& rStat,
nTmpCharsExcludingSpaces += pBreakIt->getGraphemeCount(aScanner.GetWord());
- nTmpChars = pBreakIt->getGraphemeCount(aNumString);
+ nTmpChars += pBreakIt->getGraphemeCount(aNumString);
else if ( HasBullet() )