]> granicus.if.org Git - graphviz/commitdiff
Add xdot version attribute so that lefty can use it.
authorellson <devnull@localhost>
Tue, 18 Oct 2005 21:13:56 +0000 (21:13 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 21:13:56 +0000 (21:13 +0000)
lib/common/xdgen.c

index 21f61feadb792ec9ac823823b2263e35d0eebf4c..204b2c44b0266cbed84fac13705dc01272e9e56f 100644 (file)
@@ -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))