summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3829d9b)
raw | patch | inline | side by side (parent: 3829d9b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 6 Jan 2009 15:45:53 +0000 (15:45 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 6 Jan 2009 15:45:53 +0000 (15:45 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1725 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index b7c3f12b6c1f7adfcba8d6c24b55c500056883a1..416b5d5f38ddcaee9e75c303855c9106349fd1ed 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
im -> gdes[i].col );
} else if ( im -> gdes[i].yrule < 0 ) {
gfx_new_line(im->canvas,
- im -> xorigin + ii, im->yorigin - im -> ysize,
- im -> xorigin + ii, im->yorigin - ( 1 - im -> gdes[i].yrule ) * im -> ysize,
+ im -> xorigin + ii, im->yorigin - im->ysize,
+ im -> xorigin + ii, im->yorigin - im->ysize - im->gdes[i].yrule * im->ysize,
1.0,
im -> gdes[i].col );