1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

Fix Fit to Height not resizing note tracks

This commit is contained in:
Pokechu22 2017-04-11 09:16:33 -07:00 committed by Paul Licameli
parent 298bb3fde8
commit 1daf22c638

View File

@ -5901,7 +5901,7 @@ void AudacityProject::DoZoomFitV()
TrackListIterator iter(GetTracks());
Track *t = iter.First();
while (t) {
if ((t->GetKind() == Track::Wave) &&
if ((nullptr != dynamic_cast<AudioTrack*>(t)) &&
!t->GetMinimized())
count++;
else
@ -5921,7 +5921,7 @@ void AudacityProject::DoZoomFitV()
TrackListIterator iter2(GetTracks());
t = iter2.First();
while (t) {
if ((t->GetKind() == Track::Wave) &&
if ((nullptr != dynamic_cast<AudioTrack*>(t)) &&
!t->GetMinimized())
t->SetHeight(height);
t = iter2.Next();