summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-10-27 14:21:41 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-10-27 14:22:13 +0200
commit2aab1bfd864c4e6beaa0a789abf954238d32b53b (patch)
tree39796beb245f6345cf2a95bc110f67735cd27ff7 /sw/source/core
parentfa2857fbd214346cdb808971b5830bc8833decc4 (diff)
Fixed a word length minimum that was removed
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 72b259f8838c..20888cb5116e 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -1914,12 +1914,12 @@ void SwTxtNode::CountWords( SwDocStat& rStat,
while ( aScanner.NextWord() )
{
-
- if(CH_TXTATR_BREAKWORD != aExpandText.match(aBreakWord, aScanner.GetBegin() ))
- {
+ if( aScanner.GetLen() > 1 ||
+ CH_TXTATR_BREAKWORD != aExpandText.match(aBreakWord, aScanner.GetBegin() ))
++nTmpWords;
+
+ if( CH_TXTATR_BREAKWORD != aExpandText.match(aBreakWord, aScanner.GetBegin() ))
nTmpCharsExcludingSpaces += aScanner.GetLen();
- }
}
}