From 3030dca0041ca97bb43f733cfddfa0f041a9ec54 Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 14 Jun 2010 18:01:48 +0000 Subject: [PATCH] Fix bug 1978 --- lib/common/output.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/common/output.c b/lib/common/output.c index 2ea84ee33..3d5cc6acd 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -323,11 +323,19 @@ void attach_attrs_and_arrows(graph_t* g, int* sp, int* ep) #endif for (n = agfstnode(g); n; n = agnxtnode(g, n)) { if (dim3) { + int k; + sprintf(buf, "%.5g,%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y), POINTS_PER_INCH*(ND_pos(n)[2])); + agxbput (&xb, buf); + for (k = 3; k < GD_odim(g); k++) { + sprintf(buf, ",%.5g", POINTS_PER_INCH*(ND_pos(n)[k])); + agxbput (&xb, buf); + } + agset(n, "pos", agxbuse(&xb)); } else { sprintf(buf, "%.5g,%.5g", ND_coord(n).x, YDIR(ND_coord(n).y)); + agset(n, "pos", buf); } - agset(n, "pos", buf); sprintf(buf, "%.5g", PS2INCH(ND_ht(n))); #ifndef WITH_CGRAPH agxset(n, N_height->index, buf); -- 2.50.0