mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 01:29:08 +02:00
* Fix wrong start/stop index
git-svn-id: trunk@44635 -
This commit is contained in:
parent
3f5f91f194
commit
2dfc5b160b
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user