LazControls: check filteredtreeview and listbox, fix AV, from BBaz, issue #27137

git-svn-id: trunk@47120 -
This commit is contained in:
jesus 2014-12-06 03:44:54 +00:00
parent 539bec103f
commit 7ab6918cc8
2 changed files with 4 additions and 0 deletions

View File

@ -277,6 +277,8 @@ function TListFilterEdit.ReturnKeyHandled: Boolean;
var
Key: Char;
begin
if fFilteredListbox = nil then
exit(false);
Key:=Char(VK_RETURN);
Result:=Assigned(fFilteredListbox.OnKeyPress);
if Result then

View File

@ -622,6 +622,8 @@ function TTreeFilterEdit.ReturnKeyHandled: Boolean;
var
Key: Char;
begin
if fFilteredTreeview = nil then
exit(false);
Key:=Char(VK_RETURN);
Result:=Assigned(fFilteredTreeview.OnKeyPress);
if Result then