Fix export of Plot Spectrum on Mac

This commit is contained in:
Paul Licameli 2019-12-26 21:38:38 -05:00
parent 23cd7f40f3
commit d2eb085bd6
1 changed files with 0 additions and 8 deletions

View File

@ -1074,11 +1074,7 @@ void FrequencyPlotDialog::OnExport(wxCommandEvent & WXUNUSED(event))
return; return;
wxTextFile f(fName); wxTextFile f(fName);
#ifdef __WXMAC__
wxFile{}.Create(fName);
#else
f.Create(); f.Create();
#endif
f.Open(); f.Open();
if (!f.IsOpened()) { if (!f.IsOpened()) {
AudacityMessageBox( XO("Couldn't write to file: %s").Format( fName ) ); AudacityMessageBox( XO("Couldn't write to file: %s").Format( fName ) );
@ -1100,11 +1096,7 @@ void FrequencyPlotDialog::OnExport(wxCommandEvent & WXUNUSED(event))
i / mRate, mRate / i, processed[i])); i / mRate, mRate / i, processed[i]));
} }
#ifdef __WXMAC__
f.Write(wxTextFileType_Mac);
#else
f.Write(); f.Write();
#endif
f.Close(); f.Close();
} }