]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
LINE: should have width 1 and not width 0
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 19 Mar 2013 06:08:25 +0000 (07:08 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 19 Mar 2013 06:08:25 +0000 (07:08 +0100)
src/rrd_graph_helper.c

index a85d4ddfda505d4779fc85acdcb4ba10d3e267dc..114722872e0572ac33f90ea39e654507863bc8ee 100644 (file)
@@ -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;