From 65ce86e47f23adf3cbbafcd6aead2c16331cffd7 Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Fri, 20 May 2016 15:36:14 -0400 Subject: [PATCH] When we went back to the old semantics of doing a translation to the origin, we forgot the case of multiple components, where the packing may cause negative coordinates to be generated. Thus, we need to make sure gv_postprocess does a final translation if notranslate is not set. --- lib/neatogen/neatoinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index b8178b486..ab7734786 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -1502,7 +1502,7 @@ void neato_layout(Agraph_t * g) if (noTranslate) doEdges(g); else spline_edges(g); } - gv_postprocess(g, 0); + gv_postprocess(g, !noTranslate); } PSinputscale = save_scale; } -- 2.50.1