From 9c4157ca359635352993ec5dc1e852456b3b11ca Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 3 Jan 2021 00:54:52 +0100 Subject: [PATCH] statistics: fix silly typo in legend code After each column, instead of setting the new x-variable, the new value was added to the old value. This led to ever increasing gaps. Signed-off-by: Berthold Stoeger --- stats/legend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats/legend.cpp b/stats/legend.cpp index 927e972c8..457ce42f6 100644 --- a/stats/legend.cpp +++ b/stats/legend.cpp @@ -93,7 +93,7 @@ void Legend::resize() y += fontHeight; ++displayedItems; } - x += nextX; + x = nextX; width = nextX; if (width >= size.width() / 2.0) // More than half the chart-width -> give up break;