mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-23 18:26:05 +02:00
TCheckListBox: fix possible crash introduced in r47992 #62711a2bb8.
git-svn-id: trunk@47993 -
This commit is contained in:
parent
62711a2bb8
commit
01b55f14dc
@ -302,7 +302,7 @@ begin
|
||||
if (Key = VK_SPACE) and (Shift=[]) then
|
||||
begin
|
||||
//Delphi (7) sets ItemIndex to 0 in this case and fires OnClick
|
||||
if (ItemIndex < 0) and (Items.Count >= 0) then
|
||||
if (ItemIndex < 0) and (Items.Count > 0) then
|
||||
begin
|
||||
ItemIndex := 0;
|
||||
Click;
|
||||
|
Loading…
Reference in New Issue
Block a user