[Libreoffice-commits] .: Branch 'libreoffice-3-5' - sw/source
Michael Stahl
mst at kemper.freedesktop.org
Mon Jun 11 04:07:11 PDT 2012
sw/source/core/txtnode/txtedt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit fbfc736fcdf06bd2d02aac7fe83cd3080c897c27
Author: Muhammad Haggag <mhaggag at gmail.com>
Date: Sat Jun 9 23:48:27 2012 +0200
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 <mstahl at redhat.com>
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index d153212..5a7ae5e 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() )
{
More information about the Libreoffice-commits
mailing list