avoid out of range access
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user