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

index 093bec7b07429455da5060876b7d53d72b517936..421a5ec87c59971b6737cbc0e30aeea3c98a5a8c 100644 (file)
@@ -3133,7 +3133,7 @@ static void init_job_dpi(GVJ_t *job, graph_t *g)
     GVJ_t *firstjob = job->gvc->active_jobs;
 
     if (GD_drawing(g)->dpi != 0) {
-        job->dpi.x = job->dpi.y = (double)(GD_drawing(g)->dpi);
+        job->dpi.x = job->dpi.y = (double)GD_drawing(g)->dpi;
     }
     else if (firstjob && firstjob->device_sets_dpi) {
         job->dpi = firstjob->device_dpi;   /* some devices set dpi in initialize() */
@@ -3145,7 +3145,7 @@ static void init_job_dpi(GVJ_t *job, graph_t *g)
             job->dpi = job->device.features->default_dpi;
             break;
         default:
-            job->dpi.x = job->dpi.y = (double)(DEFAULT_DPI);
+            job->dpi.x = job->dpi.y = (double)DEFAULT_DPI;
             break;
         }
     }