mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 13:28:04 +02:00
LCL: grids: AutoFillColumns, loop should count down to 0 as sometimes it deletes columns
This commit is contained in:
parent
239be664c0
commit
f530072937
@ -2303,7 +2303,7 @@ begin
|
||||
SetLength(widths, ColCount);
|
||||
|
||||
availableSize := ClientWidth - GetBorderWidth;
|
||||
for i:=0 to ColCount-1 do
|
||||
for i:=ColCount-1 downto 0 do
|
||||
with widths[i] do begin
|
||||
aIndex := i;
|
||||
GetAutoFillColumnInfo(i, aMin, aMax, aPriority);
|
||||
|
Loading…
Reference in New Issue
Block a user