]> granicus.if.org Git - graphviz/commitdiff
Attempt to fix bug 1484
authornorth <devnull@localhost>
Mon, 20 Oct 2008 14:41:10 +0000 (14:41 +0000)
committernorth <devnull@localhost>
Mon, 20 Oct 2008 14:41:10 +0000 (14:41 +0000)
lib/cgraph/write.c

index b4f2ea6ee0039a41ed7d52c069c644864d1f0a71..9e6c542f5d4cfd4be6502565ba764dc0e3d43089 100644 (file)
@@ -556,7 +556,7 @@ static void write_body(Agraph_t * g, iochan_t * ofile)
 
     /* has_attr = (agattrrec(g) != NIL(Agattr_t*)); */
     write_subgs(g, ofile);
-    dd = agdatadict(g);
+    dd = agdatadict(agroot(g));
     for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
        if (write_node_test(g, n, AGSEQ(n)))
            write_node(n, ofile, dd->dict.n);