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];