From ad273a41e894adea3dfb5e66ecb40574be2d7485 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 21 Jan 2016 09:44:05 +0000 Subject: Simplify place_float_below loop condition. --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index b7d9e2034..45d905fa4 100644 --- a/render/layout.c +++ b/render/layout.c @@ -3472,7 +3472,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; -- cgit v1.2.3