fix off-by-on bug preventing the "reset zoom" button for charts to work as expected

This commit is contained in:
Axel Kohlmeyer
2024-08-16 23:00:41 -04:00
parent d443e7dc8c
commit 6f7a48fa7a

View File

@ -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();
}