From: ellson Date: Fri, 27 Oct 2006 15:00:31 +0000 (+0000) Subject: fix b1039 - improper arrowhead on flat edges in undirected graphs X-Git-Tag: LAST_LIBGRAPH~32^2~5821 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19be6e46f46838d07ec1d6042a16469f6ca1fc22;p=graphviz fix b1039 - improper arrowhead on flat edges in undirected graphs --- diff --git a/lib/dotgen/dotsplines.c b/lib/dotgen/dotsplines.c index 2f25119d5..5790df664 100644 --- a/lib/dotgen/dotsplines.c +++ b/lib/dotgen/dotsplines.c @@ -631,9 +631,10 @@ static graph_t* cloneGraph (graph_t* g) { Agsym_t* sym; - graph_t* auxg = agopen ("auxg", AGDIGRAPH); + graph_t* auxg; Agsym_t **list; + auxg = agopen ("auxg", AG_IS_DIRECTED(g)?AGDIGRAPH:AGRAPH); agraphattr(auxg, "rank", ""); GD_drawing(auxg) = NEW(layout_t); GD_drawing(auxg)->quantum = GD_drawing(g)->quantum;