]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1948
authorerg <devnull@localhost>
Fri, 21 May 2010 16:28:23 +0000 (16:28 +0000)
committererg <devnull@localhost>
Fri, 21 May 2010 16:28:23 +0000 (16:28 +0000)
lib/dotgen/mincross.c

index 8ed2122d68c5ead2c932d14a2f7ff65d5970fbfe..d21854246cf6ada714aa1bd3372bf87a8295c458 100644 (file)
@@ -1154,7 +1154,7 @@ static void flat_reorder(graph_t * g)
            for (j = 0; j < ND_flat_in(v).size; j++) {
                flat_e = ND_flat_in(v).list[j];
                if ((ED_weight(flat_e) > 0)
-                   && (inside_cluster(g, aghead(flat_e))))
+                   && (inside_cluster(g, agtail(flat_e))))
                    local_in_cnt++;
            }
            for (j = 0; j < ND_flat_out(v).size; j++) {