Fix float wrapping when available space equals space that would be used by float.

svn path=/trunk/netsurf/; revision=3898
This commit is contained in:
Michael Drake 2008-03-07 21:39:06 +00:00
parent 5141da86fd
commit 9c0eda1d2c

View File

@ -1877,7 +1877,7 @@ void place_float_below(struct box *c, int width, int cx, int y,
} else if (left != 0 && right == 0) {
yy = left->y + left->height;
}
} while (!((left == 0 && right == 0) || (c->width < x1 - x0)));
} while (!((left == 0 && right == 0) || (c->width <= x1 - x0)));
if (c->type == BOX_FLOAT_LEFT) {
c->x = x0;