ide: don't crash when we pressing keys in the empty procedure list (bug #0013377) based on patch of Vladimir Zhirov

git-svn-id: trunk@19069 -
This commit is contained in:
paul 2009-03-23 01:44:27 +00:00
parent 3b28882b67
commit 1a7230cfff

View File

@ -581,6 +581,9 @@ end;
procedure TProcedureListForm.edMethodsKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if LV.Items.Count = 0 then
Exit;
if Key = VK_Down then
begin
if (LV.Items.IndexOf(LV.ItemFocused) + 1) < LV.Items.Count then