FIX: GetFileIndexFromCursor function result (fixes #2699)

This commit is contained in:
Alexander Koblov 2026-01-13 18:20:55 +03:00
commit 8fbde876e5
2 changed files with 2 additions and 2 deletions

View file

@ -1137,7 +1137,7 @@ begin
begin
MouseToCellWithoutOutbound(X, Y, iCol, iRow);
Result:= CellToIndex(iCol, iRow);
AtFileList:= (Result >= 0);
AtFileList:= Y >= GetHeaderHeight;
end;
end;

View file

@ -669,7 +669,7 @@ begin
begin
MouseToCellWithoutOutbound(X, Y, iCol, iRow);
Result:= CellToIndex(iCol, iRow);
AtFileList:= (Result >= 0);
AtFileList:= True; // Always at file list because header in dgPanel not used
end;
end;