diff --git a/lcl/grids.pas b/lcl/grids.pas index 30f0ed2eea..b245940029 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -6546,7 +6546,7 @@ begin Result:= gzFixedCells else begin OffsetToColRow(True, True, X, aCol, aRow); - if (aCol<0) or (ColCount<=FixedCols) then + if (aCol<0) {or (ColCount<=FixedCols)} then // Issue #41700. Result := gzInvalid else begin if AllowOutboundEvents then @@ -6567,7 +6567,7 @@ begin Result:=gzFixedCells else begin OffsetToColRow(False, True, Y, aRow, aCol); - if (aRow<0) or (RowCount<=FixedRows) then + if (aRow<0) {or (RowCount<=FixedRows)} then // Issue #41700. Result := gzInvalid else begin if AllowOutboundEvents then