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
This commit is contained in:
Michael Drake 2009-01-31 22:49:41 +00:00
parent 89cfc2f51b
commit 400ed91129

View File

@ -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;