From 30f161f5c4d714d8a2299d603d0aa37816e5a4af Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Wed, 17 Feb 2016 21:45:42 -0500 Subject: [PATCH] Fix bug when Split New with selection that extends past end of track... ... but I think there may be some other off-by-one bugs (that existed before my changes) in treatment of the last sample of a selected range. Need to look more closely. --- src/Sequence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sequence.cpp b/src/Sequence.cpp index ac0da2d85..9a8fd3817 100644 --- a/src/Sequence.cpp +++ b/src/Sequence.cpp @@ -414,7 +414,7 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest) { *dest = 0; - if (s0 >= s1 || s0 >= mNumSamples || s1 >= mNumSamples || s1 < 0) + if (s0 >= s1 || s0 >= mNumSamples || s1 < 0) return false; int numBlocks = mBlock.size();