1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-15 09:06:09 +01:00

Iterate over the pending tracks for drawing and sizing the scrollbars

This commit is contained in:
Paul Licameli
2018-01-10 16:02:51 -05:00
parent d08ae18ca4
commit 28eeca5fa7
3 changed files with 23 additions and 2 deletions

View File

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