From: erg Date: Sun, 22 Nov 2009 19:59:20 +0000 (+0000) Subject: Finish fix. Forgot to handle name in clone function X-Git-Tag: LAST_LIBGRAPH~32^2~1549 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=154d5adec32f6583784b265df36d32e03ff0723a;p=graphviz Finish fix. Forgot to handle name in clone function --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index e8ec7d422..6bee10c42 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -383,11 +383,13 @@ Agobj_t *clone(Agraph_t * g, Agobj_t * obj) switch (kind) { case AGNODE: /* same as copy node */ + name = agnameof(obj); nobj = (Agobj_t *) openNode(g, name); if (nobj) copyAttr(obj, nobj); break; case AGRAPH: + name = agnameof(obj); if (g) nobj = (Agobj_t *) openSubg(g, name); else @@ -401,6 +403,7 @@ Agobj_t *clone(Agraph_t * g, Agobj_t * obj) e = (Agedge_t *) obj; t = (Agnode_t *) clone(g, OBJ(agtail(e))); h = (Agnode_t *) clone(g, OBJ(aghead(e))); + name = agnameof (AGMKOUT(e)); nobj = (Agobj_t *) openEdge(g, t, h, name); if (nobj) copyAttr(obj, nobj);