diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 13:49:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-04 13:49:19 +0100 |
commit | 3ad44e07dcd0b3b6013a692d4d58f0422aaf5932 (patch) | |
tree | 2fb938f50c4d7e51bc081a7e37ed938508d4a234 | |
parent | 730083a03263e2d78699682736e6ee78650a00b7 (diff) |
don't assert about a bad value, if that's the fallback safely value
-rw-r--r-- | linguistic/source/gciterator.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index e8178f8f9f..671f90e4bb 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -554,7 +554,10 @@ void GrammarCheckingIterator::DequeueAndCheck() //!! work-around to prevent looping if the grammar checker //!! failed to properly identify the sentence end - if (aRes.nBehindEndOfSentencePosition <= nStartPos) + if ( + aRes.nBehindEndOfSentencePosition <= nStartPos && + aRes.nBehindEndOfSentencePosition != nSuggestedEnd + ) { DBG_ASSERT( 0, "!! Grammarchecker failed to provide end of sentence !!" ); aRes.nBehindEndOfSentencePosition = nSuggestedEnd; |