From fda5e203828a693a812e833169e67a739c96bfde 2012-02-29 13:37:13 From: Michal Klocek Date: 2012-02-29 13:37:13 Subject: [PATCH] Bugfix updateRange missing --- diff --git a/src/chartdataset.cpp b/src/chartdataset.cpp index 1141f98..93218b1 100644 --- a/src/chartdataset.cpp +++ b/src/chartdataset.cpp @@ -234,13 +234,13 @@ void ChartDataSet::setDomain(int index) foreach(QSeries* series, seriesList) { emit seriesDomainChanged(series,domain); } - axis->setRange(domain.m_minY,domain.m_maxY); + axis->updateRange(domain.m_minY,domain.m_maxY); emit axisRangeChanged(axis,labels); } QStringList labels = createLabels(axisX(),domain.m_minX,domain.m_maxX); - axisX()->setRange(domain.m_minX,domain.m_maxY); + axisX()->updateRange(domain.m_minX,domain.m_maxY); emit axisRangeChanged(axisX(),labels); }