]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Fix for overlapping areas in transparent mode (#1226)
authorthurban <ThomasUrban@urban-software.de>
Mon, 1 May 2023 09:09:12 +0000 (11:09 +0200)
committerGitHub <noreply@github.com>
Mon, 1 May 2023 09:09:12 +0000 (11:09 +0200)
* Fix for overlapping areas in transparent mode

CHANGES
src/rrd_graph.c

diff --git a/CHANGES b/CHANGES
index f5dbe3ca5c88a7e78ab2fab6aa9a5bd10026d631..e8d3239df69393ad17dc048a7cdc08e29f204545 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,7 @@ RRDtool - master ...
 
 Bugfixes
 --------
+* Fix ytop and ybase adjustments for overlaping area issue on transparent areas <turban>
 * Suppress warnings of implicit fall through <youpong>
 * Update tarball download link in doc <c72578>
 * Fix unsigned integer overflow in rrdtool first. Add test for rrd_first() <c72578>
index 2d7fb17057bb6524751e96a8f9da198c9582f177..b32d450856e85ee0f9f191c772df5383032c07a7 100644 (file)
@@ -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 */