]> granicus.if.org Git - graphviz/commitdiff
Fix partially changed code.
authorerg <devnull@localhost>
Wed, 18 Jan 2006 15:39:36 +0000 (15:39 +0000)
committererg <devnull@localhost>
Wed, 18 Jan 2006 15:39:36 +0000 (15:39 +0000)
lib/pack/pack.c
lib/pack/pack.h

index f7c0d7098b7504805126c246bd610a1558bf185c..21d1bd41fa36277338b7c2593f8ce0e60d59054f 100644 (file)
@@ -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;
 }
index c025d06175231003046f47539192753f1afc1864..e77330ad737787fddf01fb2c6df9f9c8f37382d8 100644 (file)
@@ -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);