From 8e7fd2a9dd81d259c6a4fc10274b744ed6726517 Mon Sep 17 00:00:00 2001 From: Muhammad Haggag Date: Sat, 9 Jun 2012 23:48:27 +0200 Subject: [PATCH] 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 --- sw/source/core/txtnode/txtedt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index f65bfe9..3fbef67 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() ) { -- 1.7.9.5