[project @ 2003-09-05 19:19:05 by bursa]

Empty float bug fix.

svn path=/import/netsurf/; revision=268
This commit is contained in:
James Bursa 2003-09-05 19:19:05 +00:00
parent 83de722a57
commit 61778630bd
1 changed files with 10 additions and 0 deletions

View File

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