[Libreoffice-commits] .: Branch 'libreoffice-3-3' - sw/source
Tor Lillqvist
tml at kemper.freedesktop.org
Tue Jun 21 22:58:53 PDT 2011
sw/source/core/txtnode/txtedt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c450ac7031cd7a2146380b6664df24fd9d2b995c
Author: Korrawit Pruegsanusak <detective.conan.1412 at gmail.com>
Date: Wed Jun 22 00:30:51 2011 +0700
Fix for fdo#30550, character count without spaces
Instantiating aScanner should set bClip to be true. This will make the
boundaries correct.
Released under LGPLv3+/MPL
Signed-off-by: Tor Lillqvist <tlillqvist at novell.com>
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index cc03200..a7a2182 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1908,7 +1908,7 @@ void SwTxtNode::CountWords( SwDocStat& rStat,
const String aScannerText( aExpandText );
SwScanner aScanner( *this, aScannerText, 0, pConversionMap,
i18n::WordType::WORD_COUNT,
- (xub_StrLen)nExpandBegin, (xub_StrLen)nExpandEnd );
+ (xub_StrLen)nExpandBegin, (xub_StrLen)nExpandEnd, true );
const rtl::OUString aBreakWord( CH_TXTATR_BREAKWORD );
More information about the Libreoffice-commits
mailing list