From: ellson Date: Tue, 12 Sep 2006 14:06:34 +0000 (+0000) Subject: Fix for #1006 part 2 (e.g. dot -Txdot try.dot ) X-Git-Tag: LAST_LIBGRAPH~32^2~5891 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bdb18eac2acc17e3bb8dbe17eccb8932e4779c6;p=graphviz Fix for #1006 part 2 (e.g. dot -Txdot try.dot ) --- diff --git a/lib/common/output.c b/lib/common/output.c index 82067c281..c418b56a3 100644 --- a/lib/common/output.c +++ b/lib/common/output.c @@ -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])); + } }