]> granicus.if.org Git - graphviz/commitdiff
Make sure regular nodes have lw+rw == ht.
authorerg <devnull@localhost>
Wed, 12 Dec 2007 03:31:34 +0000 (03:31 +0000)
committererg <devnull@localhost>
Wed, 12 Dec 2007 03:31:34 +0000 (03:31 +0000)
lib/common/postproc.c

index a28c5ce3fb4462736b8ae3ca9e1699420f128886..08f70dca804ca9d6ec128e4dc58735ee0e6ce0d5 100644 (file)
@@ -155,7 +155,10 @@ void dot_nodesize(node_t * n, boolean flip)
     if (ps < 1)
        ps = 1;
     ND_lw_i(n) = ND_rw_i(n) = ps;
-    ND_ht_i(n) = POINTS(y);
+    if (x == y)
+       ND_ht_i(n) = 2*ps;
+    else
+       ND_ht_i(n) = POINTS(y);
 }
 
 /* translate_drawing: