diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-02 08:47:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-02 08:48:48 +0200 |
commit | a47e50e3386a13a1601b3aa1355de70aa9e056ff (patch) | |
tree | b4181d3ff99279381da0a260c87f9cc8553d9a68 /l10ntools/source | |
parent | 4d858fff6b0980e82b36a7fe70a9e750ee9d53a2 (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/source')
-rw-r--r-- | l10ntools/source/xmlparse.cxx | 4 |
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]) |