mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 18:00:24 +02:00
Grids: fix MouseToGridzone: if mouse is over a fixed grid, don't return gzInvalid. Issue #41700.
This commit is contained in:
parent
18505ab603
commit
387ddf0aa8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user