mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
plot: fix crash with selecting column out of range
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user