]> granicus.if.org Git - graphviz/commitdiff
Make sure virtual nodes are rooted in the real graph root to pick up
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 27 Mar 2014 15:26:25 +0000 (11:26 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 27 Mar 2014 15:26:25 +0000 (11:26 -0400)
graph properties.

lib/dotgen/fastgr.c

index 7d55d1be2bf8925322398cb9850a9c23309ba69f..1dd763c9cd638b95f1758a0e406b31932d00415a 100644 (file)
@@ -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;