From ff84fae1e25107cecdf37785025744c6e2b89f9e Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Thu, 27 Mar 2014 11:26:25 -0400 Subject: [PATCH] Make sure virtual nodes are rooted in the real graph root to pick up graph properties. --- lib/dotgen/fastgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dotgen/fastgr.c b/lib/dotgen/fastgr.c index 7d55d1be2..1dd763c9c 100644 --- a/lib/dotgen/fastgr.c +++ b/lib/dotgen/fastgr.c @@ -245,7 +245,7 @@ node_t *virtual_node(graph_t * g) // agnameof(n) = "virtual"; AGTYPE(n) = AGNODE; n->base.data = (Agrec_t*)NEW(Agnodeinfo_t); - n->root = g; + n->root = agroot(g); ND_node_type(n) = VIRTUAL; ND_lw(n) = ND_rw(n) = 1; ND_ht(n) = 1; -- 2.40.0