]> granicus.if.org Git - graphviz/commitdiff
bugfix to setv $g node attr val
authorellson <devnull@localhost>
Tue, 18 Oct 2005 18:57:09 +0000 (18:57 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 18:57:09 +0000 (18:57 +0000)
tclpkg/gv/gv.cpp

index 975650b3035ff2b84344e8ddedb9eb527510a730..f540e2bd2217e7c18772d24e3e9aded963ad4d16 100644 (file)
@@ -243,13 +243,13 @@ char *setv(Agraph_t *g, char *gne, char *attr, char *val)
         a = agfindattr(g->proto->n, attr);
         if (!a)
            a = agnodeattr(g->root, attr, "");
-        val = agxget(g->proto->n, a->index);
+        agxset(g->proto->n, a->index, val);
     }
     else if (strncmp(gne,"edge",len) == 0) {
         a = agfindattr(g->proto->e, attr);
         if (!a)
            a = agedgeattr(g->root, attr, "");
-        val = agxget(g->proto->e, a->index);
+        agxset(g->proto->e, a->index, val);
     }
     else
         return NULL;