##// END OF EJS Templates
Check the index is within the valid range...
Andy Shaw -
r2765:bcd1945731d3
parent child
Show More
@@ -108,7 +108,7 QPointF DeclarativeXySeries::at(int index)
108 108 {
109 109 QXYSeries *series = qobject_cast<QXYSeries *>(xySeries());
110 110 Q_ASSERT(series);
111 if (index >= 0 || index < series->count())
111 if (index >= 0 && index < series->count())
112 112 return series->points().at(index);
113 113 return QPointF(0, 0);
114 114 }
General Comments 0
You need to be logged in to leave comments. Login now