diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-05 11:11:56 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-06 12:31:22 -0800 |
commit | 598058e21ebc93834b71cc1b66e881451a596ce6 (patch) | |
tree | 9cda0af2d91e6a4b480a0038ea01eb2e08db7ee1 | |
parent | 90129aa26f991676be8b0f94a5c1cffe123ffbb6 (diff) | |
download | subsurface-598058e21ebc93834b71cc1b66e881451a596ce6.tar.gz |
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 <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | stats/barseries.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |