From: ellson Date: Mon, 18 Jul 2005 03:11:06 +0000 (+0000) Subject: fix rounding error in viewport size X-Git-Tag: LAST_LIBGRAPH~32^2~7417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae35146b4da9d79b243d565bbbd5d1d7c4eb38b3;p=graphviz fix rounding error in viewport size --- diff --git a/lib/common/emit.c b/lib/common/emit.c index 55e5645ee..42e514182 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -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;