mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 19:16:16 +02:00
fixed AV in dbgrid.CellClick
git-svn-id: trunk@7837 -
This commit is contained in:
parent
0b932a761a
commit
d6b74d51c8
@ -2039,11 +2039,13 @@ end;
|
||||
|
||||
procedure TCustomDbGrid.CellClick(const aCol, aRow: Integer);
|
||||
begin
|
||||
if ColumnEditorStyle(ACol, SelectedField) = cbsCheckboxColumn then
|
||||
if FIsEditingCheckBox then
|
||||
SwapCheckBox
|
||||
else
|
||||
FIsEditingCheckBox := True;
|
||||
if (aCol>=FixedCols)and(aRow>=FixedRows) then begin
|
||||
if ColumnEditorStyle(ACol, SelectedField) = cbsCheckboxColumn then
|
||||
if FIsEditingCheckBox then
|
||||
SwapCheckBox
|
||||
else
|
||||
FIsEditingCheckBox := True;
|
||||
end;
|
||||
if Assigned(OnCellClick) then
|
||||
OnCellClick(TColumn(ColumnFromGridColumn(aCol)));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user