From: erg Date: Thu, 14 May 2009 18:47:22 +0000 (+0000) Subject: Fix 3D output to use floats without rounding X-Git-Tag: LAST_LIBGRAPH~32^2~2065 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f058b6440f02fad63ff0cb7da0e7d7be87fb2f0;p=graphviz Fix 3D output to use floats without rounding --- diff --git a/lib/common/output.c b/lib/common/output.c index 0c0d50a88..35c6f7ed0 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -286,7 +286,7 @@ void attach_attrs_and_arrows(graph_t* g, int* sp, int* ep) #endif for (n = agfstnode(g); n; n = agnxtnode(g, n)) { if (dim3) { - sprintf(buf, "%.5g,%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y), POINTS(ND_pos(n)[2])); + sprintf(buf, "%.5g,%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y), POINTS_PER_INCH*(ND_pos(n)[2])); } else { sprintf(buf, "%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y)); }