diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-07-11 19:09:44 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-07-11 19:11:14 +0200 |
commit | de3d6883f2a8fe9c5c04b8e271a36423f96950bb (patch) | |
tree | 61732fc9aadd08a8283f0d560ee14e40c528b296 /l10ntools/source | |
parent | aaddd17317ece20a46e7c3586ce43a95a5db2059 (diff) |
Regression fix correction
Change-Id: I03f020f474c198368aa3528870b0752752a3bd2c
Diffstat (limited to 'l10ntools/source')
-rw-r--r-- | l10ntools/source/tagtest.cxx | 5 |
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 ); |