]> granicus.if.org Git - graphviz/commitdiff
Fixed compare of anonymous edge ID. I don't see how AGTYPE(e) could be right.
authorStephen North <scnorth@gmail.com>
Thu, 23 Oct 2014 22:04:02 +0000 (18:04 -0400)
committerStephen North <scnorth@gmail.com>
Thu, 23 Oct 2014 22:04:02 +0000 (18:04 -0400)
lib/cgraph/edge.c

index 0e491eae6d6efea11ef751b8f3dee6d25ba4a485..1a60e7ac8b10788703fae75c184dc106809a695e 100644 (file)
@@ -413,7 +413,7 @@ int agedgeidcmpf(Dict_t * d, void *arg_e0, void *arg_e1, Dtdisc_t * disc)
     NOTUSED(disc);
     v = AGID(e0->node) - AGID(e1->node);
     if (v == 0) {              /* same node */
-       if ((AGTYPE(e0) == 0) || (AGTYPE(e1) == 0))
+       if ((AGID(e0) == 0) || (AGID(e1) == 0))
            v = 0;
        else
            v = AGID(e0) - AGID(e1);