]> granicus.if.org Git - graphviz/commitdiff
GD_gvc needs to be set earlier for graph labels
authorellson <devnull@localhost>
Fri, 19 May 2006 01:48:51 +0000 (01:48 +0000)
committerellson <devnull@localhost>
Fri, 19 May 2006 01:48:51 +0000 (01:48 +0000)
lib/gvc/gvlayout.c

index 1988abf62bd7ab78af5da871f484b611250b2cfb..c0830978ba2aeb805a78644fab5c5c32a4ed7d86 100644 (file)
@@ -61,9 +61,9 @@ int gvLayoutJobs(GVC_t * gvc, graph_t * g)
     if (! gvle)
        return -1;
 
+    GD_gvc(g) = gvc;
     graph_init(g, gvc->layout.features->flags & LAYOUT_USES_RANKDIR);
     GD_drawing(g->root) = GD_drawing(g);
-    GD_gvc(g) = gvc;
     if (gvle && gvle->layout) {
        gvle->layout(g);
        if (gvle->cleanup)