* Fix wrong start/stop index

git-svn-id: trunk@44635 -
This commit is contained in:
michael 2020-04-07 14:03:42 +00:00
parent 3f5f91f194
commit 2dfc5b160b

View File

@ -1033,8 +1033,8 @@ begin
Result:=Nil;
if aStart>aEnd then exit;
SetLength(Result,aEnd-aStart+1);
For I:=0 to Count-1 do
Result[i]:=Objects[i];
For I:=aStart to aEnd do
Result[i-aStart]:=Objects[i];
end;
function TStrings.ToStringArray: TStringDynArray;
@ -1052,8 +1052,8 @@ begin
Result:=Nil;
if aStart>aEnd then exit;
SetLength(Result,aEnd-aStart+1);
For I:=0 to Count-1 do
Result[i]:=Strings[i];
For I:=aStart to aEnd do
Result[i-aStart]:=Strings[i];
end;