]> granicus.if.org Git - graphviz/commitdiff
Fix bug in which data structure is repeatedly attached to parent graph than
authorEmden Gansner <erg@research.att.com>
Thu, 3 Jan 2013 22:02:47 +0000 (17:02 -0500)
committerEmden Gansner <erg@research.att.com>
Thu, 3 Jan 2013 22:02:47 +0000 (17:02 -0500)
once to each cluster subgraph

lib/osage/osageinit.c

index ac759589a5f622fac45c93a7c576da852c34767e..de4d6ecd4c24fefc7887669848715bff343cf932 100644 (file)
@@ -348,7 +348,7 @@ mkClusters (Agraph_t* g, clist_t* pclist, Agraph_t* parent)
 #ifdef WITH_CGRAPH
     for (subg = agfstsubg(g); subg; subg = agnxtsubg(subg)) {
         if (!strncmp(agnameof(subg), "cluster", 7)) {
-           agbindrec(g, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);
+           agbindrec(subg, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);
            do_graph_label (subg);
             addCluster(clist, subg);
             mkClusters(subg, NULL, subg);