lazutils: fixed replacesubstring append

git-svn-id: trunk@47018 -
This commit is contained in:
mattias 2014-11-28 14:23:29 +00:00
parent 05a395046c
commit 172eada300

View File

@ -793,8 +793,10 @@ var
p: PByte;
begin
SLen:=length(s);
if StartPos>SLen then
StartPos:=SLen;
if StartPos>SLen then begin
s:=s+Insertion;
exit;
end;
if StartPos<1 then StartPos:=1;
if Count<0 then Count:=0;
MaxCount:=SLen-StartPos+1;