[Libreoffice-commits] core.git: l10ntools/source

Eike Rathke erack at redhat.com
Wed Oct 21 05:20:54 PDT 2015


 l10ntools/source/xmlparse.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 741543132ad355e295ff0aafd1105c1225fef670
Author: Eike Rathke <erack at 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()));


More information about the Libreoffice-commits mailing list