LCL, grids, check for valid editor

git-svn-id: trunk@42991 -
This commit is contained in:
jesus 2013-09-27 18:00:39 +00:00
parent 189a3c9fa2
commit 6ab0ade4ee

View File

@ -7357,7 +7357,8 @@ end;
function TCustomGrid.Focused: Boolean;
begin
Result := CanTab and (HandleAllocated and
(FindOwnerControl(GetFocus)=Self) or (FEditor.Visible and FEditor.Focused));
(FindOwnerControl(GetFocus)=Self) or
((FEditor<>nil) and FEditor.Visible and FEditor.Focused));
end;
procedure TCustomGrid.InvalidateCell(aCol, aRow: Integer);