diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2016-01-21 09:44:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-01-21 09:44:05 +0000 |
commit | ad273a41e894adea3dfb5e66ecb40574be2d7485 (patch) | |
tree | 4ec148b6ab71aefbe29c090e915e20b99cfba800 /render/layout.c | |
parent | 4055ecf79626b25d5e222054dda48c40cfbdd396 (diff) | |
download | netsurf-ad273a41e894adea3dfb5e66ecb40574be2d7485.tar.gz netsurf-ad273a41e894adea3dfb5e66ecb40574be2d7485.tar.bz2 |
Simplify place_float_below loop condition.
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 2 |
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; |