]> granicus.if.org Git - graphviz/commitdiff
Fix for #1006 part 2 (e.g. dot -Txdot try.dot )
authorellson <devnull@localhost>
Tue, 12 Sep 2006 14:06:34 +0000 (14:06 +0000)
committerellson <devnull@localhost>
Tue, 12 Sep 2006 14:06:34 +0000 (14:06 +0000)
lib/common/output.c

index 82067c2815392d4385baf79a8df9ffaeb331e8a1..c418b56a3ab5c4a8ba16aa23e175236c73b2652d 100644 (file)
@@ -443,6 +443,9 @@ 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))
+    if (GD_label(sg)) {
+        if (!g_l_draw)
+            g_l_draw = safe_dcl(sg->root, sg, "_ldraw_", "", agraphattr);
        agxset(sg, g_l_draw->index, agxbuse(xbufs[EMIT_CLABEL]));
+    }
 }