From: ellson Date: Tue, 18 Oct 2005 21:13:56 +0000 (+0000) Subject: Add xdot version attribute so that lefty can use it. X-Git-Tag: LAST_LIBGRAPH~32^2~7030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f38eec9c3eb42fa29cc2f1ca7c0555469320e768;p=graphviz Add xdot version attribute so that lefty can use it. --- diff --git a/lib/common/xdgen.c b/lib/common/xdgen.c index 21f61fead..204b2c44b 100644 --- a/lib/common/xdgen.c +++ b/lib/common/xdgen.c @@ -17,6 +17,8 @@ #include "render.h" #include "agxbuf.h" +#define XDOTVERSION "1.1" + static GVC_t *gvc; static agxbuf xbuf0; static agxbuf xbuf1; @@ -83,6 +85,7 @@ void extend_attrs(GVJ_t * job, graph_t *g, int s_arrows, int e_arrows) gvc = job->gvc; + agsafeset (g, "xdotversion", XDOTVERSION, ""); if (GD_has_labels(g) & GRAPH_LABEL) g_l_draw = safe_dcl(g, g, "_ldraw_", "", agraphattr); if (GD_n_cluster(g))