summaryrefslogtreecommitdiffstats
path: root/stats/boxseries.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-20 14:49:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-02-13 13:02:54 -0800
commitb7e62307c55449de9a6e76fa55c095420dc6c9e7 (patch)
tree03793fdddcd5e3dc81fbbc7a5d5dfd6cf9fa13f3 /stats/boxseries.cpp
parent18a5b5b5930247ed880cfbe8f94778b4c19b0bb2 (diff)
downloadsubsurface-b7e62307c55449de9a6e76fa55c095420dc6c9e7.tar.gz
statistics: save dive list with quartiles
To make box-and-whiskers charts selectable (select corresponding dives when clicking on box), save the dive list with the quartile data. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/boxseries.cpp')
-rw-r--r--stats/boxseries.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/boxseries.cpp b/stats/boxseries.cpp
index c4f34dbb7..06aa8b095 100644
--- a/stats/boxseries.cpp
+++ b/stats/boxseries.cpp
@@ -98,7 +98,7 @@ std::vector<QString> BoxSeries::formatInformation(const Item &item) const
{
QLocale loc;
return {
- StatsTranslations::tr("%1 (%2 dives)").arg(item.binName, loc.toString(item.q.count)),
+ StatsTranslations::tr("%1 (%2 dives)").arg(item.binName, loc.toString((int)item.q.dives.size())),
QStringLiteral("%1:").arg(variable),
infoItem(StatsTranslations::tr("min"), unit, decimals, item.q.min),
infoItem(StatsTranslations::tr("Q1"), unit, decimals, item.q.q1),