]> granicus.if.org Git - graphviz/commitdiff
Fix missing agbindrec for derived graph
authorEmden R. Gansner <erg@research.att.com>
Sat, 31 Aug 2013 02:54:45 +0000 (22:54 -0400)
committerEmden R. Gansner <erg@research.att.com>
Sat, 31 Aug 2013 02:54:45 +0000 (22:54 -0400)
lib/circogen/circularinit.c

index c3b22660756f045cdc7c029ec3458f364a186d13..6f295c4348e93fe058e9ae3e30f09451fa7a826d 100644 (file)
@@ -120,9 +120,9 @@ Agraph_t **circomps(Agraph_t * g, int *cnt)
 
 #ifndef WITH_CGRAPH
     dg = agopen("derived", AGFLAG_STRICT);
-    agbindrec (dg, "info", sizeof(Agraphinfo_t), TRUE);
 #else /* WITH_CGRAPH */
     dg = agopen("derived", Agstrictundirected,NIL(Agdisc_t *));
+    agbindrec (dg, "info", sizeof(Agraphinfo_t), TRUE);
 #endif /* WITH_CGRAPH */
     GD_alg(g) = dg;  /* store derived graph for closing later */