aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stats/statsaxis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/stats/statsaxis.cpp b/stats/statsaxis.cpp
index 734de6a63..019a16256 100644
--- a/stats/statsaxis.cpp
+++ b/stats/statsaxis.cpp
@@ -340,7 +340,7 @@ CategoryAxis::CategoryAxis(QtCharts::QChart *chart, const QString &title, const
addTick(pos + 0.5);
pos += 1.0;
}
- setRange(-0.5, static_cast<double>(labelsIn.size()) + 0.5);
+ setRange(-0.5, static_cast<double>(labelsIn.size()) - 0.5);
}
void CategoryAxis::updateLabels()