mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-15 12:39:07 +02:00
lazutils: fixed replacesubstring append
git-svn-id: trunk@47018 -
This commit is contained in:
parent
05a395046c
commit
172eada300
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user