]> granicus.if.org Git - graphviz/commitdiff
When cgraph is used, bind graphinfo record before GD_* macros are used.
authorerg <devnull@localhost>
Mon, 20 Jul 2009 20:16:46 +0000 (20:16 +0000)
committererg <devnull@localhost>
Mon, 20 Jul 2009 20:16:46 +0000 (20:16 +0000)
lib/gvc/gvlayout.c

index bc53e9a8e0888793d0667def27941d74d3acf157..d8ceecaa06ca1109071b0d522fa1548fb403be2e 100644 (file)
@@ -65,6 +65,9 @@ int gvLayoutJobs(GVC_t * gvc, Agraph_t * g)
     char *p;
     int rc;
 
+#ifdef WITH_CGRAPH
+    agbindrec(g, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);
+#endif
     GD_gvc(g) = gvc;
     if (g != agroot(g))
        GD_gvc(agroot(g)) = gvc;