1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-04 14:39:08 +02:00

Bug 1510 - Moonphase: Crash cancelling Save As... character replacement dialogue when exporting multiple by tracks

Bug no longer moonphase when exporting stereo.  Iterator is iterating through channels, not tracks, so we need to allow for that when we skip whole tracks.
This commit is contained in:
James Crook 2016-09-10 20:00:32 +01:00
parent 1c00e18a5d
commit 796b98de8b

View File

@ -886,6 +886,14 @@ int ExportMultiple::ExportMultipleByTrack(bool byName,
continue;
}
// Bug 1510 possibly increment iter, before deciding whether to export.
// Check for a linked track
tr2 = NULL;
if (tr->GetLinked()) {
tr2 = iter.Next();
}
wxLogDebug( "Get setting %i", count );
/* get the settings to use for the export from the array */
activeSetting = exportSettings[count];
if( activeSetting.destfile.GetName().IsEmpty() ){
@ -895,15 +903,9 @@ int ExportMultiple::ExportMultipleByTrack(bool byName,
/* Select the track */
tr->SetSelected(true);
// Check for a linked track
tr2 = NULL;
if (tr->GetLinked()) {
tr2 = iter.Next();
if (tr2) {
// Select it also
tr2->SetSelected(true);
}
if (tr2) {
// Select it also
tr2->SetSelected(true);
}
// Export the data. "channels" are per track.