summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-04-02 08:47:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-04-02 08:48:48 +0200
commita47e50e3386a13a1601b3aa1355de70aa9e056ff (patch)
treeb4181d3ff99279381da0a260c87f9cc8553d9a68 /l10ntools
parent4d858fff6b0980e82b36a7fe70a9e750ee9d53a2 (diff)
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
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/xmlparse.cxx4
1 files 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])