]> granicus.if.org Git - graphviz/commitdiff
Fix bug in neato on disconnected graphs. The change in code
authorerg <devnull@localhost>
Tue, 15 Sep 2009 18:15:47 +0000 (18:15 +0000)
committererg <devnull@localhost>
Tue, 15 Sep 2009 18:15:47 +0000 (18:15 +0000)
needed to allow backgrounds caused a reordering of packing
and edge creation. Since edges are now created earlier, we needed
to tell pack to handle edges as well.

lib/neatogen/neatoinit.c

index 0e5727052e221ced17c01751458641a4e1a1028e..eb9528828bb0b274f703e93fd050e4b2e2beddbf 100644 (file)
@@ -1539,7 +1539,8 @@ void neato_layout(Agraph_t * g)
                    bp = 0;
                pinfo.margin = Pack;
                pinfo.fixed = bp;
-               packGraphs(n_cc, cc, 0, &pinfo);
+               pinfo.doSplines = 1;
+               packGraphs(n_cc, cc, g, &pinfo);
                if (bp)
                    free(bp);
            }