]> granicus.if.org Git - graphviz/commitdiff
edge proto attributes need root graph
authorellson <devnull@localhost>
Fri, 13 Jan 2006 19:50:49 +0000 (19:50 +0000)
committerellson <devnull@localhost>
Fri, 13 Jan 2006 19:50:49 +0000 (19:50 +0000)
tclpkg/gv/gv.cpp

index 577c42466442da5b883c10666f348787c0dff653..1977b52d93ed3038da4e027f720bdaad960b2844 100644 (file)
@@ -258,7 +258,7 @@ char *setv(Agedge_t *e, char *attr, char *val)
 
     if (!e || !attr || !val)
        return NULL;
-    g = e->tail->graph;
+    g = e->tail->graph->root;
     a = agfindattr(g->proto->e, attr);
     if (!a)
         a = agedgeattr(g, attr, empty_string);