1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-16 06:03:49 +01:00

Rename, rewrite, and simplify use of FindPendingChangedTrack

This commit is contained in:
Paul Licameli
2018-09-13 13:11:00 -04:00
parent a5c50a112a
commit 34cc1ff577
5 changed files with 20 additions and 25 deletions

View File

@@ -1193,9 +1193,7 @@ void TrackPanel::DrawEverythingElse(TrackPanelDrawingContext &context,
VisibleTrackIterator iter(GetProject());
for (const Track *t = iter.First(); t; t = iter.Next()) {
auto other = GetTracks()->FindPendingChangedTrack(t->GetId());
if (other)
t = other.get();
t = t->SubstitutePendingChangedTrack().get();
trackRect.y = t->GetY() - mViewInfo->vpos;
trackRect.height = t->GetHeight();