From: erg Date: Wed, 10 May 2006 15:49:34 +0000 (+0000) Subject: Fix for bug 940 X-Git-Tag: LAST_LIBGRAPH~32^2~6624 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee27c70874edbee9eb65cd1fae6e70358390631f;p=graphviz Fix for bug 940 --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index cc683cfd9..2f25119d5 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -829,7 +829,7 @@ make_flat_adj_edges(path* P, edge_t** edges, int ind, int cnt, edge_t* e0) dot_position(auxg); /* reposition */ - midx = (ND_coord_i(tn).x + ND_coord_i(hn).x)/2; + midx = (ND_coord_i(tn).x - ND_rw_i(tn) + ND_coord_i(hn).x + ND_lw_i(hn))/2; midy = (ND_coord_i(auxt).x + ND_coord_i(auxh).x)/2; for (n = GD_nlist(auxg); n; n = ND_next(n)) { if (n == auxt) {