diff options
author | Korrawit Pruegsanusak <detective.conan.1412@gmail.com> | 2011-06-22 00:30:51 +0700 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-22 08:53:56 +0300 |
commit | c450ac7031cd7a2146380b6664df24fd9d2b995c (patch) | |
tree | cbf1ce858f22e21069f16dd50ef5623b5aab2f66 | |
parent | 884b525da5856cbd2c4a382e73327d8c59a91acc (diff) |
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@novell.com>
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index cc03200ad7..a7a2182d41 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 ); |