From f8f93e82defd99c12a167eab55383fc20f7e193d Mon Sep 17 00:00:00 2001 From: erg Date: Mon, 20 Jul 2009 20:16:46 +0000 Subject: [PATCH] When cgraph is used, bind graphinfo record before GD_* macros are used. --- lib/gvc/gvlayout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gvc/gvlayout.c b/lib/gvc/gvlayout.c index bc53e9a8e..d8ceecaa0 100644 --- a/lib/gvc/gvlayout.c +++ b/lib/gvc/gvlayout.c @@ -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; -- 2.40.0