Kaydet (Commit) 74154313 authored tarafından Eike Rathke's avatar Eike Rathke

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
üst 2f3ea8df
......@@ -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()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment