From 598058e21ebc93834b71cc1b66e881451a596ce6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 5 Jan 2021 11:11:56 +0100 Subject: [PATCH] statistics: set correct z-value for bars The bars were set to the z-value of the labels. Not an issue, since the labels are generated after the bars and therefore plot later. Still, do the right thing. Signed-off-by: Berthold Stoeger --- stats/barseries.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats/barseries.cpp b/stats/barseries.cpp index 231990d02..2f7f9cca9 100644 --- a/stats/barseries.cpp +++ b/stats/barseries.cpp @@ -188,7 +188,7 @@ BarSeries::Item::Item(QtCharts::QChart *chart, BarSeries *series, double lowerBo total(total) { for (SubItem &item: subitems) { - item.item->setZValue(ZValues::seriesLabels); + item.item->setZValue(ZValues::series); item.highlight(false, binCount); } updatePosition(chart, series, horizontal, stacked, binCount);