summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-21 14:09:42 +0200
committerEike Rathke <erack@redhat.com>2015-10-21 14:20:04 +0200
commit741543132ad355e295ff0aafd1105c1225fef670 (patch)
treee281f84f9f616ddaee6ee27da21589456174a0c9 /l10ntools
parent2f3ea8dfbc7dedc785cd07ad0b681a0da3904a80 (diff)
start next find at previous endpos, not one after previous startpos
The portion from startpos to endpos was handled, no need to recheck things in between and find nothing; or worse, find something and duplicate a part of a portion.. Change-Id: I37b58d2433514ffa8f31a0fa06f84c6a8aaee947
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/xmlparse.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index eae496a39dba..1fa5920ae997 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -1139,7 +1139,7 @@ OString XMLUtil::QuotHTML( const OString &rString )
}
else
sReturn.append(lcl_QuotRange(sSource, nStartPos, nEndPos));
- ++nStartPos;
+ nStartPos = nEndPos;
}
if( nEndPos < sSource.length() )
sReturn.append(lcl_QuotRange(sSource, nEndPos, sSource.length()));