diff --git a/lcl/grids.pas b/lcl/grids.pas index d5b4bc64ff..81fe436a82 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -2002,8 +2002,7 @@ begin Gz := MouseToGridZone(X,Y); ButtonColumn := IsMouseOverCellButton(X, Y); - P.X:=X; - P.Y:=Y; + P := MouseToCell(Point(X, Y)); if (gz<>HotGridZone) or (P.x<>HotCell.x) or (P.y<>HotCell.y) then begin ResetHotCell;