Code

hmpf its the gdef step we are talking about not the image step !
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 23 Sep 2005 23:06:12 +0000 (23:06 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 23 Sep 2005 23:06:12 +0000 (23:06 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@690 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_graph.c

index 97f6d68bb7241f6ae7c819e84447f3ffb8785fa8..a4f250c9b6ddffb773d5149c0a8c628d42552cae 100644 (file)
@@ -2740,6 +2740,7 @@ gdes_alloc(image_desc_t *im){
 
 
     im->gdes[im->gdes_c-1].step=im->step;
+    im->gdes[im->gdes_c-1].step_orig=im->step;
     im->gdes[im->gdes_c-1].stack=0;
     im->gdes[im->gdes_c-1].debug=0;
     im->gdes[im->gdes_c-1].start=im->start; 
@@ -2881,7 +2882,6 @@ rrd_graph_init(image_desc_t *im)
     im->xsize = 400;
     im->ysize = 100;
     im->step = 0;
-    im->step_orig = 0;
     im->ylegend[0] = '\0';
     im->title[0] = '\0';
     im->minval = DNAN;