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:
parent
1c00e18a5d
commit
796b98de8b
@ -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,16 +903,10 @@ 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);
|
||||
}
|
||||
}
|
||||
|
||||
// Export the data. "channels" are per track.
|
||||
ok = DoExport(activeSetting.channels, activeSetting.destfile, true, activeSetting.t0, activeSetting.t1, activeSetting.filetags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user