From 8eb5edb28c5a52de89664341954e2bcb40561681 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 21 May 2008 15:21:47 +0000 Subject: [PATCH] Fix neato -n to update bbox if nodes are adjusted. --- lib/neatogen/neatoinit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index c8c5c62eb..d788bd144 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -611,8 +611,10 @@ int init_nop(Agraph_t * g, int adjust) if (adjust && Nop == 1) adjustNodes(g); - /* If g does not have a good "bb" attribute, compute it. */ - if (!chkBB(g, G_bb)) + /* If g does not have a good "bb" attribute or we adjusted the nodes, + * compute it. + */ + if (!chkBB(g, G_bb) || (adjust && Nop == 1)) compute_bb(g); /* At this point, all bounding boxes should be correctly defined. -- 2.40.0