From: Tobias Oetiker Date: Tue, 19 Mar 2013 06:08:25 +0000 (+0100) Subject: LINE: should have width 1 and not width 0 X-Git-Tag: v1.5.0-rc1~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7625c664b252e31fdb01be8a1eae1a909802ca;p=thirdparty%2Frrdtool-1.x.git LINE: should have width 1 and not width 0 --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index a85d4ddf..11472287 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -487,15 +487,15 @@ graph_desc_t* newGraphDescription(image_desc_t *const im,enum gf_en gf,parsedarg gdp->yaxisidx=yaxis; } if (bitscmp(PARSE_LINEWIDTH)) { - double linewidth=0; + double linewidth = 1; char *t,*x; if ((t=getKeyValueArgument("linewidth",1,pa))&&(*t!=0)) { if ((getDouble(t,&linewidth,&x))||(linewidth<=0)) { rrd_set_error("Bad line width: %s",t); return NULL; } - dprintfparsed("got linewidth: %s (%g)\n",t,linewidth); - gdp->linewidth=linewidth; } + dprintfparsed("got linewidth: %s (%g)\n",t,linewidth); + gdp->linewidth=linewidth; } if (bitscmp(PARSE_HEIGHT)) { double height=0;