]> granicus.if.org Git - graphviz/commitdiff
Yet another old integer calculation removed.
authorEmden R. Gansner <erg@alum.mit.edu>
Fri, 21 Mar 2014 21:47:07 +0000 (17:47 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Fri, 21 Mar 2014 21:47:07 +0000 (17:47 -0400)
lib/common/splines.c

index 295f008dffb9b26bc12d46251c6097e3fe1640f1..da29e86d98e601989297019d668d73348f8e4622 100644 (file)
@@ -385,11 +385,9 @@ void add_box(path * P, boxf b)
  * The extra space provided by FUDGE-2 prevents the edge from getting
  * too close the side of the node.
  *
- * The HT2 macro is needed because dot calculates ht2 and ht1 of ranks using
- * integers.
  */
 #define FUDGE 2
-#define HT2(n) ((ROUND(ND_ht(n))+1)/2)
+#define HT2(n) (ND_ht(n)/2)
 
 void
 beginpath(path * P, edge_t * e, int et, pathend_t * endp, boolean merge)