From 739422ba70ceb4be0bb1829b6feb0c5401de641e Mon Sep 17 00:00:00 2001 From: James Crook Date: Thu, 6 Jul 2017 16:20:48 +0100 Subject: [PATCH] Add split line before new recording on same track. --- src/toolbars/ControlToolBar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/toolbars/ControlToolBar.cpp b/src/toolbars/ControlToolBar.cpp index d0f7f01d1..728ac8fdf 100644 --- a/src/toolbars/ControlToolBar.cpp +++ b/src/toolbars/ControlToolBar.cpp @@ -1043,7 +1043,9 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt) playbackTracks.erase(it); } t1 = wt->GetEndTime(); - if (t1 < t0) { + // less than or equal, not just less than, to ensure a clip boundary. + // when append recording. + if (t1 <= t0) { if (!tracksCopied) { // Duplicate all tracks before modifying any of them. // The duplicates are used to restore state in case