From 4e9d2e78b32e3e12df2f2a885c30c8a749df5402 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 6 May 2009 17:54:43 +0000 Subject: [PATCH] Fix bounding box bug; note problem with pinned graphs --- lib/pack/pack.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.40.0