mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 05:09:13 +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;
|
p: PByte;
|
||||||
begin
|
begin
|
||||||
SLen:=length(s);
|
SLen:=length(s);
|
||||||
if StartPos>SLen then
|
if StartPos>SLen then begin
|
||||||
StartPos:=SLen;
|
s:=s+Insertion;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
if StartPos<1 then StartPos:=1;
|
if StartPos<1 then StartPos:=1;
|
||||||
if Count<0 then Count:=0;
|
if Count<0 then Count:=0;
|
||||||
MaxCount:=SLen-StartPos+1;
|
MaxCount:=SLen-StartPos+1;
|
||||||
|
Loading…
Reference in New Issue
Block a user