mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Fix EqualRange for case of zero tolerance
This commit is contained in:
@@ -1012,7 +1012,7 @@ std::pair<int, int> Envelope::EqualRange( double when, double sampleTime ) const
|
||||
{ return point1.GetT() < point2.GetT(); }
|
||||
);
|
||||
auto after = first;
|
||||
while ( after != end && after->GetT() < when + tolerance )
|
||||
while ( after != end && after->GetT() <= when + tolerance )
|
||||
++after;
|
||||
return { first - begin, after - begin };
|
||||
}
|
||||
|
Reference in New Issue
Block a user