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

make Label exports a native (LF-terminated) text file rather than Mac Classic (CR-terminated) one, as it's more compatible with the rest of the platform (and the Wx default). Also create file directly on all platforms - no reason why Mac needs a special case with current wx. This code has been this way for many years, the original reason is long gone.

This commit is contained in:
richardash1981 2013-08-31 14:09:55 +00:00
parent 5918ad671d
commit 507bc713a7

View File

@ -2932,13 +2932,7 @@ void AudacityProject::OnExportLabels()
}
wxTextFile f(fName);
#ifdef __WXMAC__
wxFile *temp = new wxFile();
temp->Create(fName);
delete temp;
#else
f.Create();
#endif
f.Open();
if (!f.IsOpened()) {
wxMessageBox(_("Couldn't write to file: ") + fName);
@ -2953,11 +2947,7 @@ void AudacityProject::OnExportLabels()
t = iter.Next();
}
#ifdef __WXMAC__
f.Write(wxTextFileType_Mac);
#else
f.Write();
#endif
f.Close();
}