From 22e405f914ab05a8ad92fa1a9d6d5953c8173fbe Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 28 Jun 2006 16:47:02 +0000 Subject: Fix float placement when it's an exact fit for the width available svn path=/trunk/netsurf/; revision=2661 --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/layout.c') diff --git a/render/layout.c b/render/layout.c index 6875bce61..248a944d4 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1207,7 +1207,7 @@ bool layout_line(struct box *first, int width, int *y, d->padding[TOP] + d->height + d->padding[BOTTOM] + d->border[BOTTOM] + d->margin[BOTTOM]; - if (b->width < (x1 - x0) - x || + if (b->width <= (x1 - x0) - x || (left == 0 && right == 0 && x == 0)) { /* fits next to this line, or this line is empty * with no floats */ -- cgit v1.2.3