Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv3850
Modified Files:
AudacityApp.cpp
Log Message:
Fix startup crash when using STL enabled wxGTK...patch idea from Michal Seben
Index: AudacityApp.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudacityApp.cpp,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -d -r1.232 -r1.233
--- AudacityApp.cpp 25 May 2009 17:51:56 -0000 1.232
+++ AudacityApp.cpp 27 May 2009 15:40:05 -0000 1.233
@@ -541,8 +541,6 @@
}
void AudacityApp::OnMRUFile(wxCommandEvent& event) {
- AudacityProject *proj = GetActiveProject();
-
int n = event.GetId() - wxID_FILE1;
wxString fileName = mRecentFiles->GetHistoryFile(n);
@@ -1022,7 +1020,7 @@
wxString presets = wxT("");
#ifdef __WXGTK__
- if (presetsFromPrefs.GetChar(0) != wxT('/'))
+ if (presetsFromPrefs.Length() > 0 && presetsFromPrefs[0] != wxT('/'))
presetsFromPrefs = wxT("");
#endif //__WXGTK__
@@ -1074,7 +1072,7 @@
wxString temp = wxT("");
#ifdef __WXGTK__
- if (tempFromPrefs.GetChar(0) != wxT('/'))
+ if (tempFromPrefs.Length() > 0 && tempFromPrefs[0] != wxT('/'))
tempFromPrefs = wxT("");
#endif
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs