mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-29 08:17:09 +01:00
Paul Licameli's fix for http://bugzilla.audacityteam.org/show_bug.cgi?id=751. modified. Exclude collapsed tracks from the resizing too, not just from computation of the new size.
The original fix silently change sizes of collapsed wavetracks. That's not visible, but will be seen when they are next unminimized. To be consistent with the new size calculation, we now only changes the sizes of the unminimized wavetracks.
This commit is contained in:
@@ -4442,7 +4442,8 @@ void AudacityProject::DoZoomFitV()
|
||||
TrackListIterator iter2(mTracks);
|
||||
t = iter2.First();
|
||||
while (t) {
|
||||
if (t->GetKind() == Track::Wave)
|
||||
if ((t->GetKind() == Track::Wave) &&
|
||||
!t->GetMinimized())
|
||||
t->SetHeight(height);
|
||||
t = iter2.Next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user