mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 08:29:29 +02:00
* Fix wrong index check for insert, border is different
git-svn-id: trunk@34834 -
This commit is contained in:
parent
e78cc24ca3
commit
32ec90dccf
@ -1629,7 +1629,8 @@ begin
|
||||
Error (SSortedListError,0)
|
||||
else
|
||||
begin
|
||||
CheckIndex(Index);
|
||||
If (Index<0) or (Index>FCount) then
|
||||
Error(SListIndexError,Index); // Cannot use CheckIndex, because there >= FCount...
|
||||
InsertItem (Index,S);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user