From 750a5de10444b735cc18797050661109b03b79cf Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 14 May 2009 18:29:06 +0000 Subject: [PATCH] Fix 3D output to use floats --- 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 fda80ee56..0c0d50a88 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,%d", 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(ND_pos(n)[2])); } else { sprintf(buf, "%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y)); } -- 2.40.0