mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 21:39:16 +02:00
dbgrids: fix 2 occurrences where gzFixedCols and gxFixedRows were swapped. Resolves issue #41719.
This commit is contained in:
parent
f826f69769
commit
bd116b488b
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user