1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-19 14:17:41 +02:00

Fix: Cursor now stays where it is if z pressed and no zero crossings or audio nearby and in empty space.

This commit is contained in:
james.k.crook@gmail.com 2012-03-25 16:35:04 +00:00
parent 2f0323c8fd
commit a5c5af0d5a

View File

@ -2638,7 +2638,7 @@ double AudacityProject::NearestZeroCrossing(double t0)
// Find minimum
int argmin = 0;
float min = 1.0;
float min = 3.0;
for(i=0; i<windowSize; i++) {
if (dist[i] < min) {
argmin = i;