LCL: Grids: Fix size of moved block in AutoFillColumns

This commit is contained in:
Jesus Reyes A 2021-08-25 10:06:20 -05:00
parent 1e64a65808
commit 19530e0548

View File

@ -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;