From e61e3978808b79b6f9b8b05d0a8907f2f8232fc7 Mon Sep 17 00:00:00 2001 From: nirgal Date: Sun, 13 Jan 2019 10:02:24 +0000 Subject: [PATCH] Re-enable 0-width lines Some people were using these as a base for stacks. --- src/rrd_graph_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.47.2