]> granicus.if.org Git - graphviz/commitdiff
Make sure dot_root() works for all graph objects.
authorEmden R. Gansner <erg@alum.mit.edu>
Tue, 25 Mar 2014 13:57:21 +0000 (09:57 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Tue, 25 Mar 2014 13:57:21 +0000 (09:57 -0400)
lib/dotgen/dotinit.c
lib/dotgen/dotprocs.h

index fe41c52e1f0cfe74c74ec3619992953d39d6826c..de1aaa254d15b055254c9f2ef738ddaf70e342ac 100644 (file)
@@ -437,8 +437,8 @@ void dot_layout(Agraph_t * g)
     dotneato_postprocess(g);
 }
 
-Agraph_t * dot_root (Agraph_t* g)
+Agraph_t * dot_root (void* p)
 {
-    return GD_dotroot(g);
+    return GD_dotroot(agroot(p));
 }
 
index 9c8ebf597948179e204c7375b61e2790436d94d1..a0470afd4775c562506542eb367f379415161ea4 100644 (file)
@@ -77,7 +77,7 @@ extern "C" {
 #if defined(_BLD_dot) && defined(_DLL)
 #   define extern __EXPORT__
 #endif
-    extern Agraph_t* dot_root(Agraph_t *);
+    extern Agraph_t* dot_root(void *);
     extern void dot_concentrate(Agraph_t *);
     extern void dot_mincross(Agraph_t *, int);
     extern void dot_position(Agraph_t *, aspect_t*);