From: ellson Date: Sun, 21 Sep 2008 09:35:25 +0000 (+0000) Subject: use same id space for graph and clusters X-Git-Tag: LAST_LIBGRAPH~32^2~3353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a56f686f475fcb2a290a5e2f37b79b5bc19907c0;p=graphviz use same id space for graph and clusters --- diff --git a/lib/common/emit.c b/lib/common/emit.c index fd6febf3f..3fedcdacc 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -2212,7 +2212,7 @@ static void emit_begin_graph(GVJ_t * job, graph_t * g) obj->u.g = g; obj->emit_state = EMIT_GDRAW; - initObjMapData (job, GD_label(g), "graph", job->common->viewNum, g); + initObjMapData (job, GD_label(g), "graph", g->meta_node->id, g); #ifdef WITH_CODEGENS Obj = NONE; @@ -2418,7 +2418,7 @@ static void emit_begin_cluster(GVJ_t * job, Agraph_t * sg) obj->u.sg = sg; obj->emit_state = EMIT_CDRAW; - initObjMapData (job, GD_label(sg), "cluster", sg->meta_node->id, sg); + initObjMapData (job, GD_label(sg), "graph", sg->meta_node->id, sg); #ifdef WITH_CODEGENS Obj = CLST;