]> granicus.if.org Git - graphviz/commitdiff
Fix bug 2395
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 28 Nov 2013 18:53:38 +0000 (13:53 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 28 Nov 2013 18:53:38 +0000 (13:53 -0500)
lib/circogen/circular.c

index 2d48fff6a2e0a72c2e2173586e853f58f7640d0b..f268b7c6a5ddd774aef73285d0af9dedd1f3811a 100644 (file)
@@ -40,11 +40,11 @@ static void initGraphAttrs(Agraph_t * g, circ_state * state)
        state->blockCount = 0;
        rootg = rg;
        G_mindist = agattr(rootg,AGRAPH, "mindist", NULL);
-       min_dist = late_double(rootg, G_mindist, MINDIST, 0.0);
        N_artpos = agattr(rootg,AGNODE, "articulation_pos", NULL);
        N_root = agattr(rootg,AGNODE, "root", NULL);
-       rootname = agget(rootg, "root");
     }
+    rootname = agget(rootg, "root");
+    min_dist = late_double(rootg, G_mindist, MINDIST, 0.0);
     initBlocklist(&state->bl);
     state->orderCount = 1;
     state->min_dist = min_dist;