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

index 02966158d8bec5f90eeec381c673176df52f541b..2fa417fe94e7c9a2c3a2378c7d186227372260c2 100644 (file)
@@ -1683,7 +1683,7 @@ static void setup_page(GVJ_t * job, graph_t * g)
     /* Test with and without assymmetric margins, e.g: -Gmargin="1,0" */
     if (job->rotation) {
        job->translation.y = - job->clip.UR.y - job->canvasBox.LL.y / job->zoom;
-        if ((job->flags & GVRENDER_Y_GOES_DOWN) || (Y_invert))
+        if ((job->flags & GVRENDER_Y_GOES_DOWN) || Y_invert)
             job->translation.x = - job->clip.UR.x - job->canvasBox.LL.x / job->zoom;
         else
             job->translation.x = - job->clip.LL.x + job->canvasBox.LL.x / job->zoom;
@@ -1691,7 +1691,7 @@ static void setup_page(GVJ_t * job, graph_t * g)
     else {
        /* pre unscale margins to keep them constant under scaling */
         job->translation.x = - job->clip.LL.x + job->canvasBox.LL.x / job->zoom;
-        if ((job->flags & GVRENDER_Y_GOES_DOWN) || (Y_invert))
+        if ((job->flags & GVRENDER_Y_GOES_DOWN) || Y_invert)
             job->translation.y = - job->clip.UR.y - job->canvasBox.LL.y / job->zoom;
         else
             job->translation.y = - job->clip.LL.y + job->canvasBox.LL.y / job->zoom;