summaryrefslogtreecommitdiffstats
path: root/stats/statsseries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats/statsseries.cpp')
-rw-r--r--stats/statsseries.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/stats/statsseries.cpp b/stats/statsseries.cpp
index 2fff4b306..48b31336e 100644
--- a/stats/statsseries.cpp
+++ b/stats/statsseries.cpp
@@ -4,7 +4,8 @@
#include <QChart>
-StatsSeries::StatsSeries(QtCharts::QChart *chart, StatsAxis *xAxis, StatsAxis *yAxis)
+StatsSeries::StatsSeries(QtCharts::QChart *chart, StatsAxis *xAxis, StatsAxis *yAxis) :
+ xAxis(xAxis), yAxis(yAxis)
{
chart->addSeries(this);
if (xAxis && yAxis) {