From 61778630bda945efba87b2b7e3b69d28876c4b78 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 5 Sep 2003 19:19:05 +0000 Subject: [project @ 2003-09-05 19:19:05 by bursa] Empty float bug fix. svn path=/import/netsurf/; revision=268 --- render/box.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/render/box.c b/render/box.c index e13282e9b..307df5848 100644 --- a/render/box.c +++ b/render/box.c @@ -1264,6 +1264,16 @@ void box_normalise_inline_container(struct box *cont) default: assert(0); } + if (child->children == 0) { + /* the child has destroyed itself: remove float */ + if (child->prev == 0) + child->parent->children = child->next; + else + child->prev->next = child->next; + if (child->next != 0) + child->next->prev = child->prev; + box_free_box(child); + } break; case BOX_BLOCK: case BOX_INLINE_CONTAINER: -- cgit v1.2.3