From: erg Date: Thu, 14 May 2009 18:29:06 +0000 (+0000) Subject: Fix 3D output to use floats X-Git-Tag: LAST_LIBGRAPH~32^2~2066 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=750a5de10444b735cc18797050661109b03b79cf;p=graphviz Fix 3D output to use floats --- 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)); }