]> granicus.if.org Git - graphviz/commitdiff
Fix 3D output to use floats without rounding
authorerg <devnull@localhost>
Thu, 14 May 2009 18:47:22 +0000 (18:47 +0000)
committererg <devnull@localhost>
Thu, 14 May 2009 18:47:22 +0000 (18:47 +0000)
lib/common/output.c

index 0c0d50a883eb80c66788ea0386a3766008281a57..35c6f7ed05987a82b79afea0b70c7227984ea3aa 100644 (file)
@@ -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));
        }