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:
parent
2f0323c8fd
commit
a5c5af0d5a
@ -2638,7 +2638,7 @@ double AudacityProject::NearestZeroCrossing(double t0)
|
|||||||
|
|
||||||
// Find minimum
|
// Find minimum
|
||||||
int argmin = 0;
|
int argmin = 0;
|
||||||
float min = 1.0;
|
float min = 3.0;
|
||||||
for(i=0; i<windowSize; i++) {
|
for(i=0; i<windowSize; i++) {
|
||||||
if (dist[i] < min) {
|
if (dist[i] < min) {
|
||||||
argmin = i;
|
argmin = i;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user