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