From e190e47aa70124a8ef5ac4719e4f0c2730de5bb6 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Fri, 25 Jul 2014 13:10:36 -0400 Subject: [PATCH] Fix of curved edge problem - bug 2471 --- lib/dotgen/dotsplines.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 1fc615730..5a72699e7 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -269,12 +269,6 @@ static void _dot_splines(graph_t * g, int normalize) if (GD_has_labels(g->root) & EDGE_LABEL) { agerr (AGWARN, "edge labels with splines=curved not supported in dot - use xlabels\n"); } - for (n = agfstnode (g); n; n = agnxtnode(g, n)) { - for (e = agfstout(g, n); e; e = agnxtout(g,e)) { - makeStraightEdge(g, e, et, &sinfo); - } - } - goto finish; } #ifdef ORTHO if (et == ET_ORTHO) { @@ -418,7 +412,10 @@ static void _dot_splines(graph_t * g, int normalize) break; } - if (agtail(e0) == aghead(e0)) { + if (et == ET_CURVED) { + makeStraightEdges (g, edges+ind, cnt, et, &sinfo); + } + else if (agtail(e0) == aghead(e0)) { int b, sizey, r; n = agtail(e0); r = ND_rank(n); -- 2.50.1