mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 05:59:28 +02:00
LCL, corrects grids editing, from C. Western, issue #15025
git-svn-id: trunk@22494 -
This commit is contained in:
parent
be07ff95be
commit
4d743bce3e
@ -6299,8 +6299,8 @@ function TCustomGrid.EditingAllowed(ACol: Integer = -1): Boolean;
|
||||
var
|
||||
C: TGridColumn;
|
||||
begin
|
||||
Result:=(goEditing in options);
|
||||
if Result and (ACol>=0) and (ACol<ColCount) then begin
|
||||
Result:=(goEditing in options) and (ACol>=0) and (ACol<ColCount);
|
||||
if Result and Columns.Enabled then begin
|
||||
C:=ColumnFromGridColumn(ACol);
|
||||
Result:=(C<>nil) and (not C.ReadOnly);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user