mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 13:39:11 +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);
|
SetLength(widths, ColCount);
|
||||||
|
|
||||||
availableSize := ClientWidth - GetBorderWidth;
|
availableSize := ClientWidth - GetBorderWidth;
|
||||||
for i:=0 to ColCount-1 do
|
for i:=ColCount-1 downto 0 do
|
||||||
with widths[i] do begin
|
with widths[i] do begin
|
||||||
aIndex := i;
|
aIndex := i;
|
||||||
GetAutoFillColumnInfo(i, aMin, aMax, aPriority);
|
GetAutoFillColumnInfo(i, aMin, aMax, aPriority);
|
||||||
|
Loading…
Reference in New Issue
Block a user