From 1f058b6440f02fad63ff0cb7da0e7d7be87fb2f0 Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 14 May 2009 18:47:22 +0000 Subject: [PATCH] Fix 3D output to use floats without rounding --- lib/common/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.40.0