From 400ed91129a45aced9b94dd3e6ecb183f576c1d9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 31 Jan 2009 22:49:41 +0000 Subject: Hubbub allows FONT tags to span blocks and the way that the box tree is generated, this makes the BOX_INLINE's BOX_INLINE_END appears in a different BOX_BLOCK. That seems wrong, but fix layout not to crash for now. svn path=/trunk/netsurf/; revision=6325 --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index bd22abb43..a9b3bec7b 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2131,7 +2131,7 @@ bool layout_line(struct box *first, int *width, int *y, d->next != d->inline_end) { if (d->height > d->inline_end->line_height) d->inline_end->line_height = d->height; - for (struct box *il = d; il != d->inline_end; + for (struct box *il = d; il && il != d->inline_end; il = il->next) { if (d->height > il->line_height) il->line_height = d->height; -- cgit v1.2.3