diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c index af7ca565f..a1e470433 100644 --- a/render/layout.c +++ b/render/layout.c @@ -903,6 +903,8 @@ bool layout_line(struct box *first, int width, int *y, /* pass 2: place boxes in line: loop body executed at least once */ for (x = x_previous = 0, b = first; x <= x1 - x0 && b; b = b->next) { if (b->type == BOX_INLINE || b->type == BOX_INLINE_BLOCK) { + assert(b->width != UNKNOWN_WIDTH); + x_previous = x; x += space_after; b->x = x; |