]> granicus.if.org Git - graphviz/commitdiff
fix #1463 - draw graph background before drawing label in -Txdot output
authorellson <devnull@localhost>
Mon, 6 Oct 2008 13:12:16 +0000 (13:12 +0000)
committerellson <devnull@localhost>
Mon, 6 Oct 2008 13:12:16 +0000 (13:12 +0000)
plugin/core/gvrender_core_dot.c

index ef3afe5fe22eae9367a10912e90fec4cd067a16c..b4b8275b924ea4ff31de32826dc75cbc4beacaa3 100644 (file)
@@ -216,14 +216,14 @@ xdot_begin_graph (graph_t *g, int s_arrows, int e_arrows)
 
     xd = GNEW(xdot_state_t);
 
-    if (GD_has_labels(g) & GRAPH_LABEL)
-       xd->g_l_draw = safe_dcl(g, g, "_ldraw_", "", agraphattr);
-    else
-       xd->g_l_draw = NULL;
     if (GD_n_cluster(g))
        xd->g_draw = safe_dcl(g, g, "_draw_", "", agraphattr);
     else
        xd->g_draw = NULL;
+    if (GD_has_labels(g) & GRAPH_LABEL)
+       xd->g_l_draw = safe_dcl(g, g, "_ldraw_", "", agraphattr);
+    else
+       xd->g_l_draw = NULL;
 
     xd->n_draw = safe_dcl(g, g->proto->n, "_draw_", "", agnodeattr);
     xd->n_l_draw = safe_dcl(g, g->proto->n, "_ldraw_", "", agnodeattr);