From 84675ab3ce0609221b2182c2bf0c2797c85450a6 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 31 Jan 2003 06:46:32 +0000 Subject: [PATCH] The NaN check should only use lastgdes when following a STACK -- Scott Mace git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@176 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 9e9cd8f9..e1160f2f 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -2399,7 +2399,7 @@ graph_paint(image_desc_t *im, char ***calcpr) /* make sure we do not run into trouble when stacking on NaN */ for(ii=0;iixsize;ii++){ if (isnan(im->gdes[i].p_data[ii])) { - if (lastgdes) { + if (lastgdes && (im->gdes[i].gf == GF_STACK)) { im->gdes[i].p_data[ii] = lastgdes->p_data[ii]; } else { im->gdes[i].p_data[ii] = ytr(im,areazero); -- 2.30.2