mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 14:39:27 +02:00
parent
1ca8c0c336
commit
3d4ae4e620
@ -545,7 +545,7 @@ end;
|
||||
|
||||
procedure TCustomListBox.SetItemIndex(AIndex: integer);
|
||||
begin
|
||||
if AIndex=FItemIndex then
|
||||
if AIndex=GetItemIndex then
|
||||
exit;
|
||||
if (AIndex >= FItems.Count) then
|
||||
RaiseIndexOutOfBounds(AIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user