From: Tobias Oetiker Date: Tue, 10 Apr 2007 05:41:50 +0000 (+0000) Subject: use the shorthand for vidx ... X-Git-Tag: 1.2.20~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41fc1b0bf7d42a536699f53c214ba777b2454dae;p=thirdparty%2Frrdtool-1.x.git use the shorthand for vidx ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1031 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index cb95dd89..a23fb107 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -1367,13 +1367,13 @@ print_calc(image_desc_t *im, char ***prdata) break; case GF_HRULE: if(isnan(im->gdes[i].yrule)) { /* we must set this here or the legend printer can not decide to print the legend */ - im->gdes[i].yrule=im->gdes[im->gdes[i].vidx].vf.val; + im->gdes[i].yrule=im->gdes[vidx].vf.val; }; graphelement = 1; break; case GF_VRULE: if(im->gdes[i].xrule == 0) { /* again ... the legend printer needs it*/ - im->gdes[i].xrule = im->gdes[im->gdes[i].vidx].vf.when; + im->gdes[i].xrule = im->gdes[vidx].vf.when; }; graphelement = 1; break;