From 2dcfcd6724da83fe5ee944cdb6f371f1e52d4fa8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 4 Nov 2012 19:55:24 +0000 Subject: Fix placement of first inline on line below a float, when float has been shifted up by >= its own height with a negative margin. --- render/layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/render/layout.c b/render/layout.c index d0e3debe0..702cc03c6 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2782,7 +2782,10 @@ bool layout_line(struct box *first, int *width, int *y, if (right && used_height < right->y + right->height - cy + 1) used_height = right->y + right->height - cy + 1; - assert(0 < used_height); + + if (used_height < 0) + used_height = 0; + b = split_box; #ifdef LAYOUT_DEBUG LOG(("moving below float")); -- cgit v1.2.3