]> granicus.if.org Git - graphviz/commitdiff
fix bug#1006
authorellson <devnull@localhost>
Mon, 11 Sep 2006 15:34:29 +0000 (15:34 +0000)
committerellson <devnull@localhost>
Mon, 11 Sep 2006 15:34:29 +0000 (15:34 +0000)
lib/common/output.c

index 7e7f24e33164ac002a185aa218ebaff22ed40152..82067c2815392d4385baf79a8df9ffaeb331e8a1 100644 (file)
@@ -440,6 +440,8 @@ void extend_attrs(GVJ_t * job, graph_t *g, agxbuf** xbufs)
 
 void extend_attrs_glabel(graph_t *sg, agxbuf **xbufs)
 {
+    if (!g_draw)
+        g_draw = safe_dcl(sg->root, sg, "_draw_", "", agraphattr);
     agxset(sg, g_draw->index, agxbuse(xbufs[EMIT_CDRAW]));
     if (GD_label(sg))
        agxset(sg, g_l_draw->index, agxbuse(xbufs[EMIT_CLABEL]));