mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 05:40:24 +02:00
Grids: fix MouseToLogCell after changes in d70fd7f2
This commit is contained in:
parent
e3c15b161c
commit
b91a269d8d
@ -7912,11 +7912,11 @@ begin
|
||||
Gz:=MouseToGridZone(Mouse.x, Mouse.y);
|
||||
Result:=MouseToCell(Mouse);
|
||||
if gz<>gzNormal then begin
|
||||
if (gz=gzFixedRows)or(gz=gzFixedCells) then begin
|
||||
if (gz=gzFixedCols)or(gz=gzFixedCells) then begin
|
||||
Result.x:= fTopLeft.x-1;
|
||||
if Result.x<FFixedCols then Result.x:=FFixedCols;
|
||||
end;
|
||||
if (gz=gzFixedCols)or(gz=gzFixedCells) then begin
|
||||
if (gz=gzFixedRows)or(gz=gzFixedCells) then begin
|
||||
Result.y:=fTopleft.y-1;
|
||||
if Result.y<fFixedRows then Result.y:=FFixedRows;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user