]> granicus.if.org Git - graphviz/commitdiff
Fix bug 658: make sure that auxiliary loops in multiedge loops are ignored.
authorerg <devnull@localhost>
Wed, 30 Mar 2005 20:32:35 +0000 (20:32 +0000)
committererg <devnull@localhost>
Wed, 30 Mar 2005 20:32:35 +0000 (20:32 +0000)
lib/neatogen/neatosplines.c

index fec69fd16e8d43fe9b256d72838cbd8bbbccd8ad..1dd85711a3fb2384fd964921c7aa7177f52d5d94 100644 (file)
@@ -632,7 +632,8 @@ static int _spline_edges(graph_t * g, double SEP, int splines)
                              add_points(ND_coord_i(n), ED_tail_port(e).p),
                              add_points(ND_coord_i(head),
                                         ED_head_port(e).p));
-           } else if ((n == head) && ED_count(e)) {    /* self arc */
+           } else if (n == head) {    /* self arc */
+               if (ED_count(e) == 0) continue;   /* only do representative */
                if (!P) {
                    P = NEW(path);
                    P->boxes = N_NEW(agnnodes(g) + 20 * 2 * 9, box);