From: nirgal Date: Sun, 13 Jan 2019 10:02:24 +0000 (+0000) Subject: Re-enable 0-width lines X-Git-Tag: v1.7.1~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e61e3978808b79b6f9b8b05d0a8907f2f8232fc7;p=thirdparty%2Frrdtool-1.x.git Re-enable 0-width lines Some people were using these as a base for stacks. --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 5d3f0929..bbb470ab 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -545,7 +545,7 @@ static graph_desc_t* newGraphDescription(image_desc_t *const im,enum gf_en gf,pa double linewidth = 1; char *t,*x; if ((t=getKeyValueArgument("linewidth",1,pa))&&(*t!=0)) { - if ((getDouble(t,&linewidth,&x))||(linewidth<=0)) { + if ((getDouble(t,&linewidth,&x))||(linewidth<0)) { rrd_set_error("Bad line width: %s",t); return NULL; } }