mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Fix pasting into envelope with only one point...
... as reported by Steve, when applying a Nyquist effect.
This commit is contained in:
@@ -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 } );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user