mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Fix bug when Split New with selection that extends past end of track...
This commit is contained in:
commit
4d154c4d97
@ -414,7 +414,7 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest)
|
|||||||
{
|
{
|
||||||
*dest = 0;
|
*dest = 0;
|
||||||
|
|
||||||
if (s0 >= s1 || s0 >= mNumSamples || s1 >= mNumSamples || s1 < 0)
|
if (s0 >= s1 || s0 >= mNumSamples || s1 < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int numBlocks = mBlock.size();
|
int numBlocks = mBlock.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user