From d70fd7f280e85d8aff711894c689850a1c5e4ea7 Mon Sep 17 00:00:00 2001 From: Bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Sat, 31 May 2025 09:34:04 +0200 Subject: [PATCH] Grids: fix result of TCustomGrid.MouseToGridZone and TCustomGrid.CellToGridZone for gzFixedCol and gxFixedRow. Issue #41681. --- lcl/grids.pas | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/lcl/grids.pas b/lcl/grids.pas index 3b794d21d9..9390b54b17 100644 --- a/lcl/grids.pas +++ b/lcl/grids.pas @@ -6530,23 +6530,14 @@ var aBorderWidth: Integer; aCol, aRow: Longint; begin + {$ifdef dbgGrid} + debugln(['TCustomGrid.MouseToGridZone: X=',X,', Y=',Y,', FGCache.FixedWidth=',FGCache.FixedWidth,', FGCache.FixedHeight=',FGCache.FixedHeight]); + {$endif} aBorderWidth := GetBorderWidth; if FlipX(X)