Bugzilla – Attachment 62923 Details for
Bug 46757
Words and Character excluding spaces Word Count incorrect with Record Changes enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch.
fdo46757-word-count-record-changes.patch (text/plain), 1.31 KB, created by
Muhammad Haggag
on 2012-06-12 02:25:11 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Muhammad Haggag
Created:
2012-06-12 02:25:11 UTC
Size:
1.31 KB
patch
obsolete
>diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx >index 3fbef67..e70e6d9 100644 >--- a/sw/source/core/txtnode/txtedt.cxx >+++ b/sw/source/core/txtnode/txtedt.cxx >@@ -1856,13 +1856,6 @@ void SwTxtNode::CountWords( SwDocStat& rStat, > return; > } > >- // make a copy of the text >- String rTextCopy = m_Text.Copy( ); >- >- // mask out the redlined and hidden text with ' ' >- const xub_Unicode cChar(' '); >- const sal_uInt16 nNumOfMaskedChars = lcl_MaskRedlinesAndHiddenText( *this, rTextCopy, nStt, nEnd, cChar, false ); >- > // expand text into pConversionMap for scanner > rtl::OUString aExpandText; > const ModelToViewHelper::ConversionMap* pConversionMap = BuildConversionMap( aExpandText ); >@@ -1877,6 +1870,15 @@ void SwTxtNode::CountWords( SwDocStat& rStat, > return; > } > >+ // make a copy of the expanded text >+ String textCopy = aExpandText; >+ >+ // mask out the redlined and hidden text with ' ' >+ const xub_Unicode cChar(' '); >+ const sal_uInt16 nNumOfMaskedChars = lcl_MaskRedlinesAndHiddenText( *this, textCopy, nExpandBegin, nExpandEnd, cChar, false ); >+ >+ aExpandText = textCopy; >+ > //do the count > // all counts exclude hidden paras and hidden+redlined within para > // definition of space/white chars in SwScanner (and BreakIter!)
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 46757
:
57796
|
62923
|
62967