From 507bc713a77c6963a7961556e4b2b684fb24fcca Mon Sep 17 00:00:00 2001 From: richardash1981 Date: Sat, 31 Aug 2013 14:09:55 +0000 Subject: [PATCH] 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. --- src/Menus.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/Menus.cpp b/src/Menus.cpp index bf60537b4..1195b3d88 100644 --- a/src/Menus.cpp +++ b/src/Menus.cpp @@ -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(); }