From af8d562ae9b9dccf70c765fa1c70a5290db5277d Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Wed, 18 Jul 2012 14:28:02 -0400 Subject: [PATCH] Make sure all XML ids are distinct; comment out unused page code. --- plugin/core/gvrender_core_svg.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/plugin/core/gvrender_core_svg.c b/plugin/core/gvrender_core_svg.c index b2144f52e..209ecb0d7 100644 --- a/plugin/core/gvrender_core_svg.c +++ b/plugin/core/gvrender_core_svg.c @@ -46,6 +46,8 @@ typedef enum { FORMAT_SVG, FORMAT_SVGZ, } format_type; static char *sdasharray = "5,2"; /* SVG dot array */ static char *sdotarray = "1,5"; +static int gradId; +static int anchorId; #ifndef HAVE_STRCASECMP extern int strcasecmp(const char *s1, const char *s2); @@ -164,6 +166,7 @@ static void svg_begin_graph(GVJ_t * job) { obj_state_t *obj = job->obj; + anchorId = gradId = 0; gvputs(job, "