From 0eed0e50a94d5b5b179ef77bf624d90bb9b9eb69 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Tue, 3 Jan 2017 16:18:24 +0100 Subject: [PATCH] fix #760 --- src/rrd_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2