1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-16 08:37:42 +02: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:
james.k.crook@gmail.com 2014-10-07 07:30:58 +00:00
parent 67bbebc06b
commit 93f3c3cef1

View File

@ -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();
}