From 4192d4207fa44ad207c774b5f97d5163d552b8e9 Mon Sep 17 00:00:00 2001 From: erg Date: Thu, 2 Aug 2007 21:19:31 +0000 Subject: [PATCH] Fix textsize bug: since this uses gvc, all relevant graphs need to have GD_gvc set. --- cmd/tools/gvpack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 10234dcc4..cec810171 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -577,7 +577,7 @@ static Dtdisc_t pairdisc = { * Create and return a new graph which is the logical union * of the graphs gs. */ -static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt) +static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt, GVC_t * gvc) { Agraph_t *root; Agraph_t *g; @@ -594,6 +594,7 @@ static Agraph_t *cloneGraph(Agraph_t ** gs, int cnt) if (verbose) fprintf(stderr, "Creating clone graph\n"); root = agopen("root", kind); + GD_gvc(root) = gvc; initAttrs(root, gs, cnt); G_bb = agfindattr(root, "bb"); if (DOPACK) assert(G_bb); @@ -790,7 +791,7 @@ int main(int argc, char *argv[]) } /* create union graph and copy attributes */ - g = cloneGraph(gs, cnt); + g = cloneGraph(gs, cnt, gvc); /* compute new top-level bb and set */ if (DOPACK) { -- 2.40.0