mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:29:38 +02:00
LCL: Grids: Fix size of moved block in AutoFillColumns
This commit is contained in:
parent
1e64a65808
commit
19530e0548
@ -2282,7 +2282,7 @@ var
|
|||||||
procedure DeleteWidth(aIndex: Integer);
|
procedure DeleteWidth(aIndex: Integer);
|
||||||
begin
|
begin
|
||||||
if aIndex < Length(widths) - 1 then
|
if aIndex < Length(widths) - 1 then
|
||||||
move(widths[aIndex+1], widths[aIndex], (Length(widths)-1) * SizeOf(widths[0]));
|
move(widths[aIndex+1], widths[aIndex], (Length(widths)-aIndex-1) * SizeOf(widths[0]));
|
||||||
SetLength(widths, Length(widths) - 1);
|
SetLength(widths, Length(widths) - 1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user