avoid out of range access

This commit is contained in:
Axel Kohlmeyer
2024-07-15 06:25:03 -04:00
parent fb9a36c2f4
commit 970f518939

View File

@ -138,6 +138,7 @@ void ChartWindow::quit()
void ChartWindow::reset_zoom()
{
int choice = columns->currentData().toInt();
if ((choice >= 0) && (choice < charts.size()))
charts[choice]->reset_zoom();
}