diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c index d0e3debe0..702cc03c6 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2782,7 +2782,10 @@ bool layout_line(struct box *first, int *width, int *y, if (right && used_height < right->y + right->height - cy + 1) used_height = right->y + right->height - cy + 1; - assert(0 < used_height); + + if (used_height < 0) + used_height = 0; + b = split_box; #ifdef LAYOUT_DEBUG LOG(("moving below float")); |