From: Tobias Oetiker Date: Wed, 4 Jan 2017 06:57:32 +0000 (+0100) Subject: revert 0eed0e5 X-Git-Tag: v1.7.0~19 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=748b6f148e5325bd2874ba09f11c91617a95190a;p=thirdparty%2Frrdtool-1.x.git revert 0eed0e5 --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 02f03ca5..2ec9462f 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)