l10ntools/source/xmlparse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 741543132ad355e295ff0aafd1105c1225fef670 Author: Eike Rathke <er...@redhat.com> Date: Wed Oct 21 14:09:42 2015 +0200 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 diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx index eae496a..1fa5920 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())); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits