diff options
author | Thomas Lange <tl@openoffice.org> | 2009-09-07 10:44:03 +0000 |
---|---|---|
committer | Thomas Lange <tl@openoffice.org> | 2009-09-07 10:44:03 +0000 |
commit | 9e5779f493f9c25481323baa8570e76f4ee1b73a (patch) | |
tree | 97388c348bc6c35ceddd4278b2f263226bfd8f76 /linguistic/source | |
parent | 222744aceb42238d31eda4181e898343cbc504d3 (diff) |
#i101242# assertion fixed
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/gciterator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index bb63e9bb8c8b..e4018e0c9d8e 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -579,7 +579,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; |