lcl, fix TDbgrid wrong width of first column if FixedCells>1 and dgIndicator is turned off, issue #35716

git-svn-id: trunk@61740 -
This commit is contained in:
jesus 2019-08-21 14:58:44 +00:00
parent f13e53bf2f
commit 563a44c1d6

View File

@ -2582,7 +2582,7 @@ function TCustomGrid.GetColWidths(Acol: Integer): Integer;
var
C: TGridColumn;
begin
if not Columns.Enabled or (aCol<FixedCols) then
if not Columns.Enabled or (aCol<FirstGridColumn) then
begin
if IsColumnIndexValid(aCol) then
Result:=FCols[aCol]