* Fix wrong index check for insert, border is different

git-svn-id: trunk@34834 -
This commit is contained in:
michael 2016-11-07 13:39:56 +00:00
parent e78cc24ca3
commit 32ec90dccf

View File

@ -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;