]> granicus.if.org Git - graphviz/commitdiff
Fix bug making chains. The test for a forward edge shadowing a reverse edge is incorr...
authorEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:13:16 +0000 (11:13 -0400)
committerEmden R. Gansner <erg@research.att.com>
Mon, 8 Jul 2013 15:13:16 +0000 (11:13 -0400)
(1 April 2013)

lib/dotgen/class2.c

index ac814e90392912f549f0f22ad4f8aa3d723b3455..acf04f726eadc379fe1a9c403e0c73753780c273 100644 (file)
@@ -281,7 +281,7 @@ void class2(graph_t * g)
 #ifndef WITH_CGRAPH
                if ((opp = agfindedge(g, aghead(e), agtail(e))) && (opp != e)) {
 #else
-               if ((opp = agfindedge(g, aghead(e), agtail(e))) && (AGMKOUT(opp) != e)) {
+               if ((opp = agfindedge(g, aghead(e), agtail(e))) && (aghead(opp) != aghead(e))) {
 #endif /* WITH_CGRAPH */
                    /* shadows a forward edge */
                    if (ED_to_virt(opp) == NULL)