From: erg Date: Wed, 6 May 2009 17:54:43 +0000 (+0000) Subject: Fix bounding box bug; note problem with pinned graphs X-Git-Tag: LAST_LIBGRAPH~32^2~2112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e9d2e78b32e3e12df2f2a885c30c8a749df5402;p=graphviz Fix bounding box bug; note problem with pinned graphs --- diff --git a/lib/pack/pack.c b/lib/pack/pack.c index 83972383f..6f977983b 100644 --- a/lib/pack/pack.c +++ b/lib/pack/pack.c @@ -226,7 +226,7 @@ genBox(boxf bb0, ginfo * info, int ssize, int margin, point center, char* s) box bb; int x, y; - BF2B(bb, bb); + BF2B(bb0, bb); ps = newPS(); LL.x = center.x - margin; @@ -729,6 +729,9 @@ polyRects(int ng, boxf* gs, pack_info * pinfo) * * Depends on graph fields bb, node fields pos, xsize and ysize, and * edge field spl. + * + * NOTE: fixed mode does not always work. The fixed ones get translated + * back to be centered on the origin. */ static point* polyGraphs(int ng, Agraph_t ** gs, Agraph_t * root, pack_info * pinfo)