fix gSessionTimesChart segfault

This commit is contained in:
Mark Watkins 2014-09-16 12:48:52 +10:00
parent 83a6038a70
commit 289c19d8c9

View File

@ -844,7 +844,8 @@ void gSessionTimesChart::paint(QPainter &painter, gGraph &graph, const QRegion &
/////////////////////////////////////////////////////////////////////
peak_value = 0;
min_value = 999;
for (int i=idx; i <= idx_end; ++i, ++it2) {
QMap<QDate, int>::iterator it_end = dayindex.end();
for (int i=idx; (i <= idx_end) && (it2 != it_end); ++i, ++it2) {
Day * day = daylist.at(i);
if (!day)