mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +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)
|
void WaveTrack::InsertSilence(double t, double len)
|
||||||
// STRONG-GUARANTEE
|
// STRONG-GUARANTEE
|
||||||
{
|
{
|
||||||
|
// Nothing to do, if length is zero.
|
||||||
|
// Fixes Bug 1626
|
||||||
|
if( len == 0 )
|
||||||
|
return;
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
THROW_INCONSISTENCY_EXCEPTION;
|
THROW_INCONSISTENCY_EXCEPTION;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user