diff --git a/src/chartdataset.cpp b/src/chartdataset.cpp index 53a3de7..c8a029d 100644 --- a/src/chartdataset.cpp +++ b/src/chartdataset.cpp @@ -66,7 +66,7 @@ void ChartDataSet::addSeries(QSeries* series, QChartAxis *axisY) Domain* domain = m_axisDomainMap.value(axisY); if(!domain) { - domain = new Domain(); + domain = new Domain(axisY); QObject::connect(axisY,SIGNAL(changed(qreal,qreal,int,bool)),domain,SLOT(handleAxisYChanged(qreal,qreal,int,bool))); QObject::connect(axisX(),SIGNAL(changed(qreal,qreal,int,bool)),domain,SLOT(handleAxisXChanged(qreal,qreal,int,bool))); QObject::connect(domain,SIGNAL(rangeYChanged(qreal,qreal,int)),axisY,SLOT(handleAxisRangeChanged(qreal,qreal,int)));