LCL, fix AV on editing dbedit and dataset is closed, issue #15036

git-svn-id: trunk@23497 -
This commit is contained in:
jesus 2010-01-20 08:24:43 +00:00
parent cbd597f590
commit 1aa70b74a9

View File

@ -163,7 +163,7 @@ end;
procedure TDBEdit.KeyPress(var Key: char);
function CanAcceptKey: boolean;
begin
Result := Field.IsValidChar(Key) and
Result := (Field<>nil) and Field.IsValidChar(Key) and
(Field.DataType<>ftAutoInc);
end;
var