mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
grid: grid_reflow(): may be called with old_rows/cols == new_rows/cols
TODO: avoid calling grid_reflow() in this case.
This commit is contained in:
parent
e9d3e7d87f
commit
45ba9f9c8f
1 changed files with 1 additions and 1 deletions
2
grid.c
2
grid.c
|
|
@ -60,7 +60,7 @@ grid_reflow(struct grid *grid, int new_rows, int new_cols,
|
|||
const int old_rows = grid->num_rows;
|
||||
const int old_cols = grid->num_cols;
|
||||
|
||||
assert(old_rows != new_rows || old_cols != new_cols);
|
||||
//assert(old_rows != new_rows || old_cols != new_cols);
|
||||
|
||||
int new_col_idx = 0;
|
||||
int new_row_idx = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue