1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 20:22:13 +01:00

Cut from flat TimeTrack does not leave unnecessary points...

... And more generally, Envelope::CollapseRegion, should it be reused more
widely, is responsible for removing the points; WaveTrack code is relieved of
that.
This commit is contained in:
Paul Licameli
2017-05-27 19:02:29 -04:00
parent 5886bd8eb2
commit 5ff09c2a59
3 changed files with 92 additions and 1 deletions

View File

@@ -1140,7 +1140,6 @@ void WaveTrack::HandleClear(double t0, double t1,
// clip->Clear keeps points < t0 and >= t1 via Envelope::CollapseRegion
newClip->Clear(t0,t1);
newClip->GetEnvelope()->RemoveUnneededPoints(t0);
clipsToAdd.push_back( std::move( newClip ) );
}