1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-22 15:20:15 +02:00

Make append-recording insert clip boundaries again

This commit is contained in:
Paul Licameli 2017-11-24 12:28:18 -05:00
parent afdcded32d
commit 61f4284e10

View File

@ -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");