mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 08:30:06 +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 )
|
||||
pEnv->mEnv.clear();
|
||||
if( bHasT && bHasV )
|
||||
pEnv->InsertOrReplace( mT, mV );
|
||||
pEnv->InsertOrReplace( mT, pEnv->ClampValue( mV ) );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user