fix off-by-on bug preventing the "reset zoom" button for charts to work as expected
This commit is contained in:
@ -147,7 +147,7 @@ void ChartWindow::quit()
|
||||
|
||||
void ChartWindow::reset_zoom()
|
||||
{
|
||||
int choice = columns->currentData().toInt();
|
||||
int choice = columns->currentData().toInt() - 1;
|
||||
if ((choice >= 0) && (choice < charts.size())) charts[choice]->reset_zoom();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user