From: Emden Gansner Date: Wed, 18 Jul 2012 18:28:02 +0000 (-0400) Subject: Make sure all XML ids are distinct; X-Git-Tag: LAST_LIBGRAPH~32^2~371 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af8d562ae9b9dccf70c765fa1c70a5290db5277d;p=graphviz Make sure all XML ids are distinct; comment out unused page code. --- 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, "