statistics: fix display of month on continuous axis

tm::tm_mon is 0..11, not 1..12, so we have to add one for
display.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2022-10-19 21:46:08 +02:00 committed by Dirk Hohndel
parent 7d366b9afe
commit 48659c3f7d
2 changed files with 2 additions and 2 deletions

View file

@ -924,7 +924,7 @@ struct DateMonthBinner : public SimpleContinuousBinner<DateMonthBinner, DateMont
year_month value = derived_bin(bin).value;
return QString("%1 %2").arg(monthname(value.second), QString::number(value.first));
}
// In histograms, output year for fill years, month otherwise
// In histograms, output year for full years, month otherwise
QString formatLowerBound(const StatsBin &bin) const override {
year_month value = derived_bin(bin).value;
return value.second == 0 ? QString::number(value.first)