From 0ca599ff52d53c4cda57ab75bf637176454b5b51 Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Tue, 25 Mar 2014 09:57:21 -0400 Subject: [PATCH] Make sure dot_root() works for all graph objects. --- lib/dotgen/dotinit.c | 4 ++-- lib/dotgen/dotprocs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dotgen/dotinit.c b/lib/dotgen/dotinit.c index fe41c52e1..de1aaa254 100644 --- a/lib/dotgen/dotinit.c +++ b/lib/dotgen/dotinit.c @@ -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)); } diff --git a/lib/dotgen/dotprocs.h b/lib/dotgen/dotprocs.h index 9c8ebf597..a0470afd4 100644 --- a/lib/dotgen/dotprocs.h +++ b/lib/dotgen/dotprocs.h @@ -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*); -- 2.40.0