From: erg Date: Thu, 14 Aug 2008 20:28:42 +0000 (+0000) Subject: Back out more of Arif's changes. In particular, put back in crucial X-Git-Tag: LAST_LIBGRAPH~32^2~3636 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ef4bdb5a9c3cc39a82ef0a45ea6a9e1ba6d9c70;p=graphviz Back out more of Arif's changes. In particular, put back in crucial call to agini(). --- diff --git a/lib/gvc/gvc.c b/lib/gvc/gvc.c index e1d20322f..f54c7e195 100644 --- a/lib/gvc/gvc.c +++ b/lib/gvc/gvc.c @@ -48,10 +48,7 @@ GVC_t *gvContext(void) { GVC_t *gvc; -// void aginit(Agraph_t * g, int kind, char *rec_name, int rec_size, int move_to_front); -//#define aginit() aginitlib(sizeof(Agraph_t),sizeof(Agnode_t),sizeof(Agedge_t)) -//void aginit(Agraph_t * g, int kind, char *rec_name, int rec_size, int move_to_front); -// aginit(); + aginit(); agnodeattr(NULL, "label", NODENAME_ESC); gvc = gvNEWcontext(LibInfo, gvUsername()); gvconfig(gvc, FALSE); /* configure for available plugins and codegens */ @@ -81,7 +78,7 @@ int gvLayout(GVC_t *gvc, graph_t *g, char *engine) * doesn't yet include margins, scaling or page sizes because * those depend on the renderer being used. */ - if (GD_drawing(g)->landscape) + if (GD_drawing(g)->landscape) sprintf(buf, "%d %d %d %d", ROUND(GD_bb(g).LL.y), ROUND(GD_bb(g).LL.x), ROUND(GD_bb(g).UR.y), ROUND(GD_bb(g).UR.x));