lcl: add checks in dblookup. Issue #26298

git-svn-id: trunk@45392 -
This commit is contained in:
blikblum 2014-06-08 00:20:03 +00:00
parent d3edca108f
commit 49de54d716

View File

@ -141,7 +141,7 @@ begin
if FListLink.Active and not FListLink.Editing then
begin
FetchLookupData;
if FControlLink.Active then
if Assigned(FControlLink) and FControlLink.Active then
FControlLink.Reset;
end;
end;
@ -356,7 +356,7 @@ begin
Key := FListKeys[ValueIndex];
if ScrollDataset then
FListLink.DataSet.Locate(FKeyFieldNames, Key, []);
if FControlLink.Active then
if Assigned(FControlLink) and FControlLink.Active then
begin
if VarSameValue(Key, FControlLink.DataSet.FieldValues[FDataFieldNames]) then
Exit;