summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-02-12 13:57:35 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-02-12 13:57:35 +0100
commitaf8456f7e6e3d0f60a74d4147a9f741e638ef9b0 (patch)
tree923590639e4879de7ed85c423ee8bc8fda4dbce2 /linguistic
parent89246e3b483b26859b105902f9042ca9fdefe374 (diff)
parent3c550e9f7bdd8c9f1f75f4148f516ddc94290f92 (diff)
cws tl74: merge
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/gciterator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx
index 2697d5880b80..49975ad6e626 100644
--- a/linguistic/source/gciterator.cxx
+++ b/linguistic/source/gciterator.cxx
@@ -578,7 +578,8 @@ void GrammarCheckingIterator::DequeueAndCheck()
sal_Int32 nStartPos = aFPEntryItem.m_nStartIndex;
sal_Int32 nSuggestedEnd = GetSuggestedEndOfSentence( aCurTxt, nStartPos, aCurLocale );
- DBG_ASSERT( nSuggestedEnd > nStartPos, "nSuggestedEndOfSentencePos calculation failed?" );
+ DBG_ASSERT( (nSuggestedEnd == 0 && aCurTxt.getLength() == 0) || nSuggestedEnd > nStartPos,
+ "nSuggestedEndOfSentencePos calculation failed?" );
linguistic2::ProofreadingResult aRes;