]> granicus.if.org Git - graphviz/commitdiff
use same id space for graph and clusters
authorellson <devnull@localhost>
Sun, 21 Sep 2008 09:35:25 +0000 (09:35 +0000)
committerellson <devnull@localhost>
Sun, 21 Sep 2008 09:35:25 +0000 (09:35 +0000)
lib/common/emit.c

index fd6febf3f7c87ae2cfb679c099681943368b5c84..3fedcdacc6b535d38834ba686bb911999b5d4799 100644 (file)
@@ -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;