]> granicus.if.org Git - graphviz/commitdiff
init_job_viewport: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Aug 2021 00:33:29 +0000 (17:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:31:58 +0000 (19:31 -0700)
lib/common/emit.c

index 421a5ec87c59971b6737cbc0e30aeea3c98a5a8c..f57efaa45ad3004edeb5ab481ef924eb4db8baf3 100644 (file)
@@ -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);
     }