From: Emden Gansner Date: Fri, 20 May 2016 19:36:14 +0000 (-0400) Subject: When we went back to the old semantics of doing a translation to the origin, X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65ce86e47f23adf3cbbafcd6aead2c16331cffd7;p=graphviz 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. --- 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; }