1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Bug2153: Don't crash recording to >2 channels

This commit is contained in:
Paul Licameli 2019-07-14 07:04:48 -04:00
parent 3f4ad05d37
commit deb5126d81

View File

@ -677,12 +677,13 @@ bool ProjectAudioManager::DoRecord(AudacityProject &project,
newTrack->SetName(baseTrackName + wxT("_") + nameSuffix);
}
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
if ((recordingChannels > 2) &&
!(ProjectSettings::Get(*p).GetTracksFitVerticallyZoomed())) {
TrackView::Get( *newTrack ).SetMinimized(true);
}
TrackList::Get( *p ).RegisterPendingNewTrack( newTrack );
transportTracks.captureTracks.push_back(newTrack);
// Bug 1548. New track needs the focus.
TrackFocus::Get( *p ).Set( newTrack.get() );