diff --git a/src/chartdataset.cpp b/src/chartdataset.cpp index b145c2b..85cab17 100644 --- a/src/chartdataset.cpp +++ b/src/chartdataset.cpp @@ -228,6 +228,8 @@ void ChartDataSet::setDomain(int index) { QList domainList = m_domainMap.uniqueKeys(); + if(domainList.count()==0) return; + Domain domain; foreach (QChartAxis* axis , domainList) {