From: Matthew Fernandez <matthew.fernandez@gmail.com>
Date: Mon, 30 Aug 2021 00:33:29 +0000 (-0700)
Subject: init_job_viewport: remove unnecessary bracketing
X-Git-Tag: 2.49.1~46^2~4
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c42d90e18df476bb06be38a7012381d3dcad542c;p=graphviz

init_job_viewport: remove unnecessary bracketing
---

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);
     }