1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

Fix pasting into envelope with only one point...

... as reported by Steve, when applying a Nyquist effect.
This commit is contained in:
Paul Licameli 2017-06-07 11:12:27 -04:00
parent 8f66c3603d
commit 01450e8db0

View File

@ -894,7 +894,7 @@ std::pair< int, int > Envelope::ExpandRegion
{
// t0 is relative time
double val;
double val = GetValueRelative( t0 );
const auto range = EqualRange( t0, 0 );
// Preserve the left-side limit.
@ -904,7 +904,6 @@ std::pair< int, int > Envelope::ExpandRegion
;
else {
// Make a control point.
val = GetValueRelative( t0 );
Insert( range.first, EnvPoint{ t0, val } );
}