diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-31 22:49:41 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-01-31 22:49:41 +0000 |
commit | 400ed91129a45aced9b94dd3e6ecb183f576c1d9 (patch) | |
tree | a58ba0c7544429771b4c9b13ac63dc7a656af0c7 /render | |
parent | 89cfc2f51b952707924f25e5b653a9739a789a33 (diff) | |
download | netsurf-400ed91129a45aced9b94dd3e6ecb183f576c1d9.tar.gz netsurf-400ed91129a45aced9b94dd3e6ecb183f576c1d9.tar.bz2 |
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
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |