Fix placement of first inline on line below a float, when float has been shifted up by >= its own height with a negative margin.

This commit is contained in:
Michael Drake 2012-11-04 19:55:24 +00:00
parent aa438d34d2
commit 2dcfcd6724

View File

@ -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"));