Code

if stacking on nothing we should not try to figure out WHAT we stacked on since this...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 6 May 2005 15:24:27 +0000 (15:24 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 6 May 2005 15:24:27 +0000 (15:24 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@488 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_graph.c

index a5f87db3ebdeb4798122c307c3f155db38884f1f..01e174ce7cb0ed5fcdf38ed5ede01350a72cd951 100644 (file)
@@ -2482,7 +2482,7 @@ graph_paint(image_desc_t *im, char ***calcpr)
                continue;
            }
             ytop = ytr(im,im->gdes[i].p_data[ii]);
-           if ( im->gdes[i].stack ) {
+           if ( lastgdes && im->gdes[i].stack ) {
                   ybase = ytr(im,lastgdes->p_data[ii]);
             } else {
                   ybase = ytr(im,areazero);