diff --git a/CHANGELOG.md b/CHANGELOG.md index 040ea7990..f88aad29c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +statistics: show correct color of selected scatter items when switching to unbinned mode +statistics: fix display of month number in continuous date axis +statistics: fix range of continuous date axis desktop: fix dive time display in time shift dialog --- diff --git a/stats/statsaxis.cpp b/stats/statsaxis.cpp index 2f7bbc9a1..e543b7b25 100644 --- a/stats/statsaxis.cpp +++ b/stats/statsaxis.cpp @@ -623,7 +623,9 @@ static std::vector timeRangeToBins(double from, double to) QString format = day_before_month ? QStringLiteral("%1%2%3") : QStringLiteral("%3%2%1"); QString sep = QString(separator); - for (auto act = day_from; act < day_to; inc(act)) { + // Attention: In a histogramm axis, we must add one more entries than + // histogram bins. The entries are the values *between* the histograms. + for (auto act = day_from; act <= day_to; inc(act)) { double val = date_to_double(act[0], act[1], act[2]); if (act[1] == 0) { res.push_back({ QString::number(act[0]), val, true });