mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 00:58:37 +02:00
Fix pasting into envelope with only one point...
... as reported by Steve, when applying a Nyquist effect.
This commit is contained in:
parent
8f66c3603d
commit
01450e8db0
@ -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 } );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user