summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0cdbc46)
raw | patch | inline | side by side (parent: 0cdbc46)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 31 Jan 2003 06:46:32 +0000 (06:46 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Fri, 31 Jan 2003 06:46:32 +0000 (06:46 +0000) |
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 9e9cd8f9978812b7bba45f414efdd39d2afcd685..e1160f2f6c475f08bed68e3afa29b80310c8e21b 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
/* make sure we do not run into trouble when stacking on NaN */
for(ii=0;ii<im->xsize;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);