From 61f4284e106d2db14e894004c9da1530211ee4ea Mon Sep 17 00:00:00 2001 From: Paul Licameli <paul.licameli@gmail.com> Date: Fri, 24 Nov 2017 12:28:18 -0500 Subject: [PATCH] Make append-recording insert clip boundaries again --- src/WaveTrack.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/WaveTrack.cpp b/src/WaveTrack.cpp index 148e197da8..f572f64e72 100644 --- a/src/WaveTrack.cpp +++ b/src/WaveTrack.cpp @@ -1285,7 +1285,11 @@ void WaveTrack::Paste(double t0, const Track *src) other->GetStartTime() == 0.0); const double insertDuration = other->GetEndTime(); - if( insertDuration < 1.0/mRate ) + if( insertDuration != 0 && insertDuration < 1.0/mRate ) + // PRL: I added this check to avoid violations of preconditions in other WaveClip and Sequence + // methods, but allow the value 0 so I don't subvert the purpose of commit + // 739422ba70ceb4be0bb1829b6feb0c5401de641e which causes append-recording always to make + // a new clip. return; //printf("Check if we need to make room for the pasted data\n"); -- GitLab