[F] Fix ft_printf_ln
when it is used for position which have empty cells before it.
This commit is contained in:
@@ -5485,6 +5485,11 @@ f_status swap_row(f_row_t *cur_row, f_row_t *ins_row, size_t pos)
|
||||
return FT_SUCCESS;
|
||||
}
|
||||
|
||||
// Append empty cells to `cur_row` if needed.
|
||||
while (vector_size(cur_row->cells) < pos) {
|
||||
create_cell_in_position(cur_row, vector_size(cur_row->cells));
|
||||
}
|
||||
|
||||
return vector_swap(cur_row->cells, ins_row->cells, pos);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user