From bd116b488b6632e74563477943da84c324bb87e1 Mon Sep 17 00:00:00 2001 From: Bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Fri, 4 Jul 2025 22:04:34 +0200 Subject: [PATCH] dbgrids: fix 2 occurrences where gzFixedCols and gxFixedRows were swapped. Resolves issue #41719. --- lcl/dbgrids.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lcl/dbgrids.pas b/lcl/dbgrids.pas index a31cd5a282..df2ce48656 100644 --- a/lcl/dbgrids.pas +++ b/lcl/dbgrids.pas @@ -2778,14 +2778,14 @@ begin doMouseDown; end; - gzFixedCells, gzFixedCols: + gzFixedCells, gzFixedRows: doInherited; else begin P:=MouseToCell(Point(X,Y)); - if Gz=gzFixedRows then + if Gz=gzFixedCols then P.X := Col; if P.Y=Row then begin // The current active row was clicked again. @@ -3929,10 +3929,10 @@ begin MouseToCell(x, y, aCol, aRow); - if (Result=gzFixedRows) or (Result=gzNormal) then + if (Result=gzFixedCols) or (Result=gzNormal) then RecordOffset := aRow - Row; - if (Result=gzFixedCols) or (Result=gzNormal) then begin + if (Result=gzFixedRows) or (Result=gzNormal) then begin aRow := ColumnIndexFromGridColumn(aCol); if aRow>=0 then Column := Columns[aRow];