From bb834fb78a6a5d32c9b7c199561ce3c3d7aff609 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 14 May 2005 09:35:02 +0000 Subject: [PATCH] if the y value is out of bounds, make it just a wee bit larger or smaller than the bound so that the code can detect this by comparing it with the bound, but make it so small that it is not visible. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@556 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index bb4c542e..f508cf53 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -151,9 +151,9 @@ ytr(image_desc_t *im, double value){ if (! im->rigid) { /* keep yval as-is */ } else if (yval > im->yorigin) { - yval = im->yorigin; + yval = im->yorigin +0.00001; } else if (yval < im->yorigin - im->ysize){ - yval = im->yorigin - im->ysize; + yval = im->yorigin - im->ysize - 0.00001; } return yval; } -- 2.30.2