From: erg <devnull@localhost>
Date: Wed, 12 Dec 2007 03:31:34 +0000 (+0000)
Subject: Make sure regular nodes have lw+rw == ht.
X-Git-Tag: LAST_LIBGRAPH~32^2~4982
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed7ced70f705542e3282b28c3924fe1d11d921d3;p=graphviz

Make sure regular nodes have lw+rw == ht.
---

diff --git a/lib/common/postproc.c b/lib/common/postproc.c
index a28c5ce3f..08f70dca8 100644
--- a/lib/common/postproc.c
+++ b/lib/common/postproc.c
@@ -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: