From 2aab1bfd864c4e6beaa0a789abf954238d32b53b Mon Sep 17 00:00:00 2001 From: Cédric Bosdonnat Date: Wed, 27 Oct 2010 14:21:41 +0200 Subject: Fixed a word length minimum that was removed --- sw/source/core/txtnode/txtedt.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sw/source/core') 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(); - } } } -- cgit v1.2.3