From ddced78a99ac2be024547f04f4d0f054deeaac14 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 15 Sep 2009 18:15:47 +0000 Subject: [PATCH] Fix bug in neato on disconnected graphs. The change in code 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index 0e5727052..eb9528828 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -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); } -- 2.40.0