mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: resize without reflow: only verify URI ranges in debug builds
This commit is contained in:
parent
be203aeae1
commit
41565a0d0e
1 changed files with 2 additions and 0 deletions
2
grid.c
2
grid.c
|
|
@ -362,6 +362,7 @@ grid_resize_without_reflow(
|
|||
new_row->dirty = true;
|
||||
}
|
||||
|
||||
#if defined(_DEBUG)
|
||||
for (size_t r = 0; r < new_rows; r++) {
|
||||
const struct row *row = new_grid[r];
|
||||
|
||||
|
|
@ -373,6 +374,7 @@ grid_resize_without_reflow(
|
|||
verify_no_overlapping_uris(row->extra);
|
||||
verify_uris_are_sorted(row->extra);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Free old grid */
|
||||
for (int r = 0; r < grid->num_rows; r++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue