Author: tlsa
Date: Sat Jan 31 16:49:41 2009
New Revision: 6325
URL:
http://source.netsurf-browser.org?rev=6325&view=rev
Log:
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.
Modified:
trunk/netsurf/render/layout.c
Modified: trunk/netsurf/render/layout.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=6325&...
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Sat Jan 31 16:49:41 2009
@@ -2131,7 +2131,7 @@
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;