LCL: grids: MaxTopLeft may not be smaller than the Fixed area. Issue #31475

git-svn-id: trunk@54378 -
This commit is contained in:
ondrej 2017-03-09 07:54:58 +00:00
parent 1e29783c40
commit 685ada05b3

View File

@ -7633,6 +7633,8 @@ begin
Break;
end;
end;
FGCache.MaxTopLeft.x:=Max(FGCache.MaxTopLeft.x, FixedCols);
FGCache.MaxTopLeft.y:=Max(FGCache.MaxTopLeft.y, FixedRows);
end;
procedure TCustomGrid.CellClick(const aCol, aRow: Integer; const Button:TMouseButton);