From 93f3c3cef12e82be22eed7b8bfbefb9f2d968488 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Tue, 7 Oct 2014 07:30:58 +0000 Subject: [PATCH] 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. --- src/Menus.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index f1cb027f5..695ab2f26 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -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(); }