From: John Ellson Date: Tue, 14 Aug 2012 03:55:39 +0000 (-0400) Subject: missed one X-Git-Tag: LAST_LIBGRAPH~32^2~355^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e014bfe47345614ff4550680da38fa24ea927aa;p=graphviz missed one --- diff --git a/lib/cgraph/graph.c b/lib/cgraph/graph.c index 5a46ac2ab..bb892d3c7 100644 --- a/lib/cgraph/graph.c +++ b/lib/cgraph/graph.c @@ -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; } /*