mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 22:28:57 +02:00
Bug 1626 - Preview of non-RTP effects fails if all the track is selected
A length of zero for silence to insert is allowed. It means 'do nothing'.
This commit is contained in:
parent
b6d43e4954
commit
927c500acd
@ -1430,6 +1430,10 @@ void WaveTrack::Silence(double t0, double t1)
|
||||
void WaveTrack::InsertSilence(double t, double len)
|
||||
// STRONG-GUARANTEE
|
||||
{
|
||||
// Nothing to do, if length is zero.
|
||||
// Fixes Bug 1626
|
||||
if( len == 0 )
|
||||
return;
|
||||
if (len <= 0)
|
||||
THROW_INCONSISTENCY_EXCEPTION;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user