]> granicus.if.org Git - graphviz/commitdiff
cgraph fixes
authorellson <devnull@localhost>
Thu, 23 Oct 2008 01:18:08 +0000 (01:18 +0000)
committerellson <devnull@localhost>
Thu, 23 Oct 2008 01:18:08 +0000 (01:18 +0000)
plugin/core/gvrender_core_tk.c

index 00e0916991618192f415cad26ae50d100dd85205..f76ee667cd276cbfbd20642d141750735c87b940 100644 (file)
@@ -94,11 +94,19 @@ static void tkgen_print_tags(GVJ_t *job)
        break;
     case EMIT_CDRAW:
        ObjType = "cluster";
+#ifndef WITH_CGRAPH
+       ObjId = obj->u.sg->meta_node->id;
+#else
        ObjId = AGID(obj->u.sg);
+#endif
        break;
     case EMIT_CLABEL:
        ObjType = "cluster label";
+#ifndef WITH_CGRAPH
+       ObjId = obj->u.sg->meta_node->id;
+#else
        ObjId = AGID(obj->u.sg);
+#endif
        break;
     default:
        assert (0);