1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 00:51:13 +02:00

Fix crash in Windows debug runtime

This commit is contained in:
Paul Licameli 2017-06-07 09:16:22 -04:00
parent 1ce97b9d26
commit 1e7c51f1d4

View File

@ -1202,7 +1202,7 @@ void Envelope::GetValuesRelative(double *buffer, int bufferLen,
double t = t0;
double increment = 0;
if ( len > 0 && t <= mEnv[0].GetT() && mEnv[0].GetT() == mEnv[1].GetT() )
if ( len > 1 && t <= mEnv[0].GetT() && mEnv[0].GetT() == mEnv[1].GetT() )
increment = epsilon;
double tprev, vprev, tnext = 0, vnext, vstep = 0;