From: erg Date: Wed, 4 Jan 2006 21:17:23 +0000 (+0000) Subject: Fix agsafeset so that subgraphs can be used. X-Git-Tag: LAST_LIBGRAPH~32^2~6890 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b151e5a122f32703b93e322cbce01e34267d9951;p=graphviz Fix agsafeset so that subgraphs can be used. --- diff --git a/lib/graph/attribs.c b/lib/graph/attribs.c index 1b8037a3a..5b94b4698 100644 --- a/lib/graph/attribs.c +++ b/lib/graph/attribs.c @@ -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);