diff options
author | Muhammad Haggag <mhaggag@gmail.com> | 2012-06-09 23:48:27 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-11 13:02:00 +0200 |
commit | a585863f013aa4207270e11f5e031126adf1ed4a (patch) | |
tree | 22adaa8260638273525a0274603dbfdd286ce1df | |
parent | e08ab74b918be1473d91ed234ee7870cab137c7e (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
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index f65bfe94afaf..3fbef67eba57 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -1939,7 +1939,7 @@ void SwTxtNode::CountWords( SwDocStat& rStat, nTmpCharsExcludingSpaces += pBreakIt->getGraphemeCount(rWord); } - nTmpChars = pBreakIt->getGraphemeCount(aNumString); + nTmpChars += pBreakIt->getGraphemeCount(aNumString); } else if ( HasBullet() ) { |