summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-01-21 09:44:05 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2016-01-21 09:44:05 +0000
commitad273a41e894adea3dfb5e66ecb40574be2d7485 (patch)
tree4ec148b6ab71aefbe29c090e915e20b99cfba800
parent4055ecf79626b25d5e222054dda48c40cfbdd396 (diff)
downloadnetsurf-ad273a41e894adea3dfb5e66ecb40574be2d7485.tar.gz
netsurf-ad273a41e894adea3dfb5e66ecb40574be2d7485.tar.bz2
Simplify place_float_below loop condition.
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
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;