You've already forked lazarus-ccr
RxFPC:fix unneeded typecastings - ID0031435
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5769 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -158,11 +158,11 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
{
|
||||
type
|
||||
THckGrid = class(TCustomDBGrid)
|
||||
end;
|
||||
|
||||
}
|
||||
procedure TrxDBGridFindForm.SetGrid(AGrid: TRxDBGrid);
|
||||
var
|
||||
i:integer;
|
||||
@@ -182,8 +182,10 @@ begin
|
||||
end;
|
||||
|
||||
FDataSet:=nil;
|
||||
if Assigned(FGrid) and Assigned(THckGrid(FGrid).DataSource) then
|
||||
FDataSet:=THckGrid(FGrid).DataSource.DataSet;
|
||||
if Assigned(FGrid) and Assigned(FGrid.DataSource) then
|
||||
FDataSet:=FGrid.DataSource.DataSet;
|
||||
{ if Assigned(FGrid) and Assigned(THckGrid(FGrid).DataSource) then
|
||||
FDataSet:=THckGrid(FGrid).DataSource.DataSet;}
|
||||
BtnFind.Enabled:=Assigned(FDataSet) and FDataSet.Active
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user