Bugzilla – Attachment 62850 Details for
Bug 50141
: Word Count Characters (with spaces) incorrect with Numbering on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
0001-fdo-50141-Character-count-with-spaces-incorrect-with.patch (text/plain), 1.25 KB, created by
Muhammad Haggag
on 2012-06-09 14:54:23 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Muhammad Haggag
Created:
2012-06-09 14:54:23 UTC
Size:
1.25 KB
patch
obsolete
>From 8e7fd2a9dd81d259c6a4fc10274b744ed6726517 Mon Sep 17 00:00:00 2001 >From: Muhammad Haggag <mhaggag@gmail.com> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50141
:
61877
| 62850 |
63895
|
63896
|
63897