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
commitedd26d3a70e60a75e19b95cde407d77e8afe5a89 (patch)
tree113b63561183c6fb8dfbe867108e3b5a7ea8d79d /linguistic
parentb27194bbf888bba902cca11b4d1e15285d364b24 (diff)
parent1813942ec2be139a3cd7992f9e25671b2280334c (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 c20ec2c3d3..25d8ca19b7 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;