From: Emden Gansner Date: Thu, 3 Jan 2013 22:02:47 +0000 (-0500) Subject: Fix bug in which data structure is repeatedly attached to parent graph than X-Git-Tag: LAST_LIBGRAPH~32^2~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e6e7972c2db2c49ad5677c3f22e689545878c4;p=graphviz Fix bug in which data structure is repeatedly attached to parent graph than once to each cluster subgraph --- diff --git a/lib/osage/osageinit.c b/lib/osage/osageinit.c index ac759589a..de4d6ecd4 100644 --- a/lib/osage/osageinit.c +++ b/lib/osage/osageinit.c @@ -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);