From c3bacf6b075f1df877b96a07ff696fed1a5bacd6 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 1 Oct 2017 21:43:59 +0000 Subject: [PATCH] Fix an invalid iterator increment when there are no FreqCal frequencies git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8151 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d7f0ed78b..189bd78ab 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -6676,7 +6676,8 @@ void MainWindow::on_actionErase_reference_spectrum_triggered() void MainWindow::freqCalStep() { - if (++m_frequency_list_fcal_iter == m_config.frequencies ()->end ()) { + if (m_frequency_list_fcal_iter == m_config.frequencies ()->end () + || ++m_frequency_list_fcal_iter == m_config.frequencies ()->end ()) { m_frequency_list_fcal_iter = m_config.frequencies ()->begin (); }