From a47e50e3386a13a1601b3aa1355de70aa9e056ff Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Apr 2013 08:47:27 +0200 Subject: Prevent asserts from firing ...whether or not this is already the correct fix. The twisted nEndPos/nStartPos arguments in the calls to lcl_QuotRange look somewhat odd. Change-Id: If22afb058012c830b5aa6d059c7df0b4e9c53696 --- l10ntools/source/xmlparse.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index c76d5a60ddc7..651a27a5fd21 100644 --- a/l10ntools/source/xmlparse.cxx +++ b/l10ntools/source/xmlparse.cxx @@ -1180,8 +1180,8 @@ static icu::UnicodeString lcl_QuotRange( const sal_Int32 nEnd, bool bInsideTag = false ) { icu::UnicodeString sReturn; - assert( nStart > 0 && nStart < rString.length() ); - assert( nEnd > 0 && nEnd < rString.length() ); + assert( nStart >= 0 ); + assert( nEnd < rString.length() ); for (sal_Int32 i = nStart; i <= nEnd; ++i) { switch (rString[i]) -- cgit