plot: fix crash with selecting column out of range

This commit is contained in:
Peinthor Rene
2014-05-09 17:51:55 +02:00
parent c495524fbc
commit 2055bc6b26

View File

@@ -1493,7 +1493,7 @@ void MainWindow::updatePlot(SqliteTableModel *model, bool update)
int y = column;
graph->setPen(QPen(colors[y]));
graph->setPen(QPen(colors[ui->plotWidget->graphCount() - 1]));
// prepare the data vectors for qcustomplot
// possible improvement might be a QVector subclass that directly