]> granicus.if.org Git - graphviz/commitdiff
Forgot to initialize root.kind
authornorth <devnull@localhost>
Mon, 10 Nov 2008 22:15:32 +0000 (22:15 +0000)
committernorth <devnull@localhost>
Mon, 10 Nov 2008 22:15:32 +0000 (22:15 +0000)
lib/patchwork/patchwork.c

index 73644909e8599c00314e87a8ea7b426f275cfa1d..05e19582cb41ea1a79aea152c768d5826cf7a1e9 100644 (file)
@@ -215,6 +215,11 @@ int main()
 
        aginit();
        g = agread(stdin);
+#ifndef WITH_CGRAPH
+       root.kind = AGGRAPH;
+#else
+       root.kind = AGRAPH;
+#endif
        root.leftchild = treebuilder(g);
        sizeit(&root);
        /*layouter(&root,LR,r);*/
@@ -229,6 +234,11 @@ void patchwork_layout(Agraph_t *g)
        static treenode_t       root;
        rect_t r = {{0.0, 0.0}, {100.0, 100.0}};
        patchwork_init_graph(g);
+#ifndef WITH_CGRAPH
+       root.kind = AGGRAPH;
+#else
+       root.kind = AGRAPH;
+#endif
        root.leftchild = treebuilder(g);
        root.u.subg = g;
        sizeit(&root);