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:
Daniel Eklöf 2020-02-25 20:33:27 +01:00
parent e9d3e7d87f
commit 45ba9f9c8f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
grid.c
View file

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