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…
Reference in New Issue