From d8923c5c01904880c218fd94844eb8ea21f815f0 Mon Sep 17 00:00:00 2001 From: thurban Date: Mon, 1 May 2023 11:09:12 +0200 Subject: [PATCH] Fix for overlapping areas in transparent mode (#1226) * Fix for overlapping areas in transparent mode --- CHANGES | 1 + src/rrd_graph.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index f5dbe3ca..e8d3239d 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ RRDtool - master ... Bugfixes -------- +* Fix ytop and ybase adjustments for overlaping area issue on transparent areas * Suppress warnings of implicit fall through * Update tarball download link in doc * Fix unsigned integer overflow in rrdtool first. Add test for rrd_first() diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2d7fb170..b32d4508 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4295,14 +4295,14 @@ int graph_paint_timestring( ybase = extra; } if (im->slopemode == 0) { - backY[++idxI] = ybase - 0.2; + backY[++idxI] = ybase; backX[idxI] = ii + im->xorigin - 1; - foreY[idxI] = ytop + 0.2; + foreY[idxI] = ytop; foreX[idxI] = ii + im->xorigin - 1; } - backY[++idxI] = ybase - 0.2; + backY[++idxI] = ybase; backX[idxI] = ii + im->xorigin; - foreY[idxI] = ytop + 0.2; + foreY[idxI] = ytop; foreX[idxI] = ii + im->xorigin; } /* close up any remaining area */ -- 2.47.3