]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Re-enable 0-width lines
authornirgal <nirgal@users.noreply.github.com>
Sun, 13 Jan 2019 10:02:24 +0000 (10:02 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 14 Jan 2019 16:19:35 +0000 (17:19 +0100)
Some people were using these as a base for stacks.

src/rrd_graph_helper.c

index 5d3f09298780a2ab526b19d0472ce061fd267d26..bbb470ab61c2dba0be04bbb9487145596e346443 100644 (file)
@@ -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;
       }
     }