From f38eec9c3eb42fa29cc2f1ca7c0555469320e768 Mon Sep 17 00:00:00 2001 From: ellson <devnull@localhost> Date: Tue, 18 Oct 2005 21:13:56 +0000 Subject: [PATCH] Add xdot version attribute so that lefty can use it. --- lib/common/xdgen.c | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.40.0