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 | 680b463ca7feb50f4ba7105a620520b37dcf3e44 (patch) | |
tree | 321c951dd7d577fe5b3ee2a2127205522db1d774 /linguistic | |
parent | Set correct mimetype for draw documents on xml export (diff) | |
download | core-680b463ca7feb50f4ba7105a620520b37dcf3e44.tar.gz core-680b463ca7feb50f4ba7105a620520b37dcf3e44.zip |
don't assert about a bad value, if that's the fallback safely value
Diffstat (limited to 'linguistic')
-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 26cbb9f1a521..5939b1d97152 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; |