grid: resize without reflow: only verify URI ranges in debug builds

This commit is contained in:
Daniel Eklöf 2021-11-26 20:36:59 +01:00
parent be203aeae1
commit 41565a0d0e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
grid.c
View file

@ -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++)