]> granicus.if.org Git - graphviz/commitdiff
When we went back to the old semantics of doing a translation to the origin,
authorEmden Gansner <emdenrg@google.com>
Fri, 20 May 2016 19:36:14 +0000 (15:36 -0400)
committerEmden Gansner <emdenrg@google.com>
Fri, 20 May 2016 19:36:14 +0000 (15:36 -0400)
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

index b8178b4861df43f245e637754d7e0be067ed9a89..ab7734786cf813993ea941188150e58bc045003c 100644 (file)
@@ -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;
 }