mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 04:07:57 +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);
|
||||
begin
|
||||
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);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user