From b36482d6494063e6799f793ed5e6b9b696125b1a Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 7 Apr 2018 23:37:51 -0400 Subject: [PATCH] If record overrides append because of channel count, record unlimited --- src/toolbars/ControlToolBar.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/toolbars/ControlToolBar.cpp b/src/toolbars/ControlToolBar.cpp index efeb4a591..6c6bdb750 100644 --- a/src/toolbars/ControlToolBar.cpp +++ b/src/toolbars/ControlToolBar.cpp @@ -1119,12 +1119,13 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt) } recordingTracks.push_back(pending); } + } - if (t1 <= p->GetSel0() && p->GetSel1() > p->GetSel0()) { - t1 = p->GetSel1(); // record within the selection - } else { - t1 = DBL_MAX; // record for a long, long time - } + + if (t1 <= p->GetSel0() && p->GetSel1() > p->GetSel0()) { + t1 = p->GetSel1(); // record within the selection + } else { + t1 = DBL_MAX; // record for a long, long time } if( recordingTracks.empty() )