From 61e290a2a5cdeef4edb8c771cc7f36989a3a94c2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 29 Aug 2021 17:09:58 -0700 Subject: [PATCH] setup_page: remove unnecessary bracketing --- lib/common/emit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index 02966158d..2fa417fe9 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -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; -- 2.40.0