1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-01 16:19:43 +02:00

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.
This commit is contained in:
Paul Licameli 2016-02-17 21:45:42 -05:00
parent 5ee04beae4
commit 30f161f5c4

View File

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