summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-11 19:09:44 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-07-11 19:11:14 +0200
commitde3d6883f2a8fe9c5c04b8e271a36423f96950bb (patch)
tree61732fc9aadd08a8283f0d560ee14e40c528b296 /l10ntools
parentaaddd17317ece20a46e7c3586ce43a95a5db2059 (diff)
Regression fix correction
Change-Id: I03f020f474c198368aa3528870b0752752a3bd2c
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/tagtest.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/l10ntools/source/tagtest.cxx b/l10ntools/source/tagtest.cxx
index 77b3be82ee67..062c5c78a583 100644
--- a/l10ntools/source/tagtest.cxx
+++ b/l10ntools/source/tagtest.cxx
@@ -772,7 +772,10 @@ rtl::OUString SimpleParser::GetNextTokenString( ParserMessageList &rErrorList, s
if (nStyle2StartPos == -1 && nStyle3StartPos == -1)
return rtl::OUString(); // no more tokens
- if ( nStyle4StartPos != -1 && nStyle4StartPos < nStyle2StartPos && nStyle4StartPos <= nStyle3StartPos ) // <= to make sure \\ is always handled first
+ if ( nStyle4StartPos != -1
+ && (nStyle2StartPos == -1 || nStyle4StartPos < nStyle2StartPos)
+ && (nStyle3StartPos == -1 || nStyle4StartPos < nStyle3StartPos ) )
+ // to make sure \\ is always handled first
{ // Skip quoted Backslash
nPos = nStyle4StartPos +2;
return GetNextTokenString( rErrorList, rTagStartPos );