From c42d90e18df476bb06be38a7012381d3dcad542c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez <matthew.fernandez@gmail.com> Date: Sun, 29 Aug 2021 17:33:29 -0700 Subject: [PATCH] init_job_viewport: remove unnecessary bracketing --- lib/common/emit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 421a5ec87..f57efaa45 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -3178,9 +3178,9 @@ static void init_job_viewport(GVJ_t * job, graph_t * g) size = GD_drawing(g)->size; if (sz.x == 0) sz.x = size.x; if (sz.y == 0) sz.y = size.y; - if ((size.x < sz.x) || (size.y < sz.y) /* drawing is too big (in either axis) ... */ - || ((GD_drawing(g)->filled) /* or ratio=filled requested and ... */ - && (size.x > sz.x) && (size.y > sz.y))) /* drawing is too small (in both axes) ... */ + if (size.x < sz.x || size.y < sz.y /* drawing is too big (in either axis) ... */ + || (GD_drawing(g)->filled /* or ratio=filled requested and ... */ + && size.x > sz.x && size.y > sz.y)) /* drawing is too small (in both axes) ... */ Z = MIN(size.x/sz.x, size.y/sz.y); } -- 2.49.0