]> granicus.if.org Git - graphviz/commitdiff
Back out more of Arif's changes. In particular, put back in crucial
authorerg <devnull@localhost>
Thu, 14 Aug 2008 20:28:42 +0000 (20:28 +0000)
committererg <devnull@localhost>
Thu, 14 Aug 2008 20:28:42 +0000 (20:28 +0000)
call to agini().

lib/gvc/gvc.c

index e1d20322f2ac149117dc19508d7ddd45f9448990..f54c7e195bb01b30f33c4937c3eefb6d39913abc 100644 (file)
@@ -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));