From 9e5779f493f9c25481323baa8570e76f4ee1b73a Mon Sep 17 00:00:00 2001
From: Thomas Lange <tl@openoffice.org>
Date: Mon, 7 Sep 2009 10:44:03 +0000
Subject: #i101242# assertion fixed

---
 linguistic/source/gciterator.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'linguistic')

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;
 
-- 
cgit