mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-18 17:10:05 +02:00
Bug 2019 - Scriptables: Set Envelope allows envelope points at zero which can cause NaNs
This commit is contained in:
parent
6a4663e19c
commit
c79d65cdeb
@ -73,7 +73,7 @@ bool SetEnvelopeCommand::ApplyInner( const CommandContext & context, Track * t )
|
|||||||
if( bHasDelete && mbDelete )
|
if( bHasDelete && mbDelete )
|
||||||
pEnv->mEnv.clear();
|
pEnv->mEnv.clear();
|
||||||
if( bHasT && bHasV )
|
if( bHasT && bHasV )
|
||||||
pEnv->InsertOrReplace( mT, mV );
|
pEnv->InsertOrReplace( mT, pEnv->ClampValue( mV ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user