1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

Fix export of Contrast data on Mac

This commit is contained in:
Paul Licameli 2019-12-26 20:36:34 -05:00
parent f60d8d299a
commit 23cd7f40f3

View File

@ -541,11 +541,7 @@ void ContrastDialog::OnExport(wxCommandEvent & WXUNUSED(event))
return;
wxTextFile f(fName);
#ifdef __WXMAC__
wxFile{}.Create(fName);
#else
f.Create();
#endif
f.Open();
if (!f.IsOpened()) {
AudacityMessageBox( XO("Couldn't write to file: %s").Format( fName ) );
@ -611,11 +607,7 @@ void ContrastDialog::OnExport(wxCommandEvent & WXUNUSED(event))
f.AddLine(wxT("==================================="));
f.AddLine(wxT(""));
#ifdef __WXMAC__
f.Write(wxTextFileType_Mac);
#else
f.Write();
#endif
f.Close();
}