]> granicus.if.org Git - graphviz/commitdiff
missed one
authorJohn Ellson <ellson@research.att.com>
Tue, 14 Aug 2012 03:55:39 +0000 (23:55 -0400)
committerJohn Ellson <ellson@research.att.com>
Tue, 14 Aug 2012 03:55:39 +0000 (23:55 -0400)
lib/cgraph/graph.c

index 5a46ac2ab7ef01aaa8c23ccc77009fe7beca8d50..bb892d3c7614055a6bf5dbfb4b63253bb55b159b 100644 (file)
@@ -58,7 +58,9 @@ Agraph_t *agopen(char *name, Agdesc_t desc, Agdisc_t * arg_disc)
     if (agmapnametoid(g, AGRAPH, name, &gid, TRUE))
        AGID(g) = gid;
     /* else AGID(g) = 0 because we have no alternatives */
-    return agopen1(g);
+    g = agopen1(g);
+    agregister(g, AGRAPH, g);
+    return g;
 }
 
 /*