From 142558baf3f126e163161e337f8a512c1e8bbfc8 Mon Sep 17 00:00:00 2001 From: erg Date: Wed, 18 Jan 2006 15:39:36 +0000 Subject: [PATCH] Fix partially changed code. --- lib/pack/pack.c | 12 ++++++------ lib/pack/pack.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/pack/pack.c b/lib/pack/pack.c index f7c0d7098..21d1bd41f 100644 --- a/lib/pack/pack.c +++ b/lib/pack/pack.c @@ -846,16 +846,16 @@ packSubgraphs(int ng, Agraph_t ** gs, Agraph_t * root, pack_info * info) * Pack subgraphs followed by postprocessing. */ int -pack_graph(int ng, Agraph_t** gs, Agraph_t* root, int fixed) +pack_graph(int ng, Agraph_t** gs, Agraph_t* root, bool* fixed) { int ret; pack_info info; - pinfo.margin = getPack (g, CL_OFFSET, CL_OFFSET);; - pinfo.doSplines = 1; - pinfo.mode = getPackMode (g, l_graph); - pinfo.fixed = fixed; - ret = packSubgraphs(ng, gs, root, info); + info.margin = getPack (root, CL_OFFSET, CL_OFFSET);; + info.mode = getPackMode (root, l_graph); + info.doSplines = 1; + info.fixed = fixed; + ret = packSubgraphs(ng, gs, root, &info); if (ret == 0) dotneato_postprocess (root); return ret; } diff --git a/lib/pack/pack.h b/lib/pack/pack.h index c025d0617..e77330ad7 100644 --- a/lib/pack/pack.h +++ b/lib/pack/pack.h @@ -51,7 +51,7 @@ extern "C" { extern point *putGraphs(int, Agraph_t **, Agraph_t *, pack_info *); extern int packGraphs(int, Agraph_t **, Agraph_t *, pack_info *); extern int packSubgraphs(int, Agraph_t **, Agraph_t *, pack_info *); - extern int pack_graph(int, Agraph_t **, Agraph_t *, int); + extern int pack_graph(int, Agraph_t **, Agraph_t *, bool*); extern pack_mode getPackMode(Agraph_t * g, pack_mode dflt); extern int getPack(Agraph_t *, int not_def, int dflt); -- 2.40.0