]> granicus.if.org Git - graphviz/commitdiff
Fix bug 664
authorerg <devnull@localhost>
Wed, 30 Mar 2005 23:57:42 +0000 (23:57 +0000)
committererg <devnull@localhost>
Wed, 30 Mar 2005 23:57:42 +0000 (23:57 +0000)
lib/dotgen/flat.c

index 3a396fcde21bdb6dc51ffae688887fe2b63decd4..42493bed4ca47c4588c5b882caeb823cc89cfcc7 100644 (file)
@@ -299,10 +299,12 @@ flat_edges(graph_t * g)
                    }
                }
            }
+               /* look for other flat edges with labels */
            for (j = 0; j < ND_other(n).size; j++) {
                edge_t* le;
                e = ND_other(n).list[j];
                if (ND_rank(e->tail) != ND_rank(e->head)) continue;
+               if (e->tail == e->head) continue; /* skip loops */
                le = e;
                while (ED_to_virt(le)) le = ED_to_virt(le);
                ED_adjacent(e) = ED_adjacent(le);