From: Tobias Oetiker Date: Tue, 3 Jan 2017 15:18:24 +0000 (+0100) Subject: fix #760 X-Git-Tag: v1.7.0~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0eed0e5;p=thirdparty%2Frrdtool-1.x.git fix #760 --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2ec9462f..02f03ca5 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2279,7 +2279,7 @@ int leg_place( /* the xaxis labels are determined from the number of seconds per pixel in the requested graph */ -int calc_horizontal_grid( +int calc_horizontal_grid ( image_desc_t *im) { @@ -2336,7 +2336,7 @@ int calc_horizontal_grid( (im->ygrid_scale.gridstep * (double) im->ygrid_scale.labfact * im->viewfactor / im->magfact)); - if (fractionals < 0) { /* small amplitude. */ + if (fractionals = 0) { /* small amplitude. */ int len = decimals - fractionals + 1; if (im->unitslength < len + 2)