1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

comments, cleanup

This commit is contained in:
v.audacity
2012-07-19 23:42:47 +00:00
parent d74e5fa586
commit 6f50a64050
3 changed files with 3 additions and 11 deletions

View File

@@ -448,14 +448,6 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest)
bool Sequence::Paste(sampleCount s, const Sequence *src)
{
// This ancient code just blithely bounded s, rather than throwing an error.
// Now enforcing the bounds.
// Also, the second test should have been >, not >=, because if (s == mNumSamples),
// there's no point in setting s to mNumSamples.
//if ((s < 0)
// s = 0;
//if (s >= mNumSamples)
// s = mNumSamples;
if ((s < 0) || (s > mNumSamples))
{
wxLogError(