]> granicus.if.org Git - graphviz/commitdiff
fix rounding error in viewport size
authorellson <devnull@localhost>
Mon, 18 Jul 2005 03:11:06 +0000 (03:11 +0000)
committerellson <devnull@localhost>
Mon, 18 Jul 2005 03:11:06 +0000 (03:11 +0000)
lib/common/emit.c

index 55e5645eeddd30caefc95a3872ab8bdd066ee2bc..42e514182b3010ba0b6bc9722e03933e26938e1f 100644 (file)
@@ -1111,8 +1111,8 @@ static void init_job_viewport(GVJ_t * job, graph_t * g)
     if ((str = agget(g, "viewport")))
        rv = sscanf(str, "%lf,%lf,%lf,%lf,%lf", &X, &Y, &Z, &x, &y);
     /* rv is ignored since args retain previous values if not scanned */
-    job->width = ROUND(X + 1); 
-    job->height = ROUND(Y + 1);
+    job->width = ROUND(X); 
+    job->height = ROUND(Y);
     job->zoom = Z;              /* scaling factor */
     job->focus.x = x;           /* graph coord of focus - points */
     job->focus.y = y;