]> granicus.if.org Git - graphviz/commitdiff
Fix agsafeset so that subgraphs can be used.
authorerg <devnull@localhost>
Wed, 4 Jan 2006 21:17:23 +0000 (21:17 +0000)
committererg <devnull@localhost>
Wed, 4 Jan 2006 21:17:23 +0000 (21:17 +0000)
lib/graph/attribs.c

index 1b8037a3a2b79770d47e240836183a981ca44027..5b94b46987f694a7ea361a6b83ce61d13468b5d4 100644 (file)
@@ -335,7 +335,7 @@ int agsafeset(void* obj, char* name, char* value, char* def)
        if (!def) def = "";
        switch (TAG_OF(obj)) {
        case TAG_GRAPH:
-           a = agraphattr((Agraph_t*)obj, name, def);
+           a = agraphattr(((Agraph_t*)obj)->root, name, def);
            break;
        case TAG_NODE:
            a = agnodeattr(((Agnode_t*)obj)->graph, name, def);