1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

fix wxStandardPaths call for EQDefaultCurves.xml retrieval. Needed static Get method, otherwise the default init creates a unix object

This commit is contained in:
mchinen 2011-01-02 21:17:33 +00:00
parent ba12551d4d
commit 4ffd3ef681

View File

@ -986,8 +986,7 @@ void EqualizationDialog::LoadCurves(wxString fileName, bool append)
{ // Default file not found in the data dir. Fall back to Resources dir. { // Default file not found in the data dir. Fall back to Resources dir.
// See http://docs.wxwidgets.org/trunk/classwx_standard_paths.html#5514bf6288ee9f5a0acaf065762ad95d // See http://docs.wxwidgets.org/trunk/classwx_standard_paths.html#5514bf6288ee9f5a0acaf065762ad95d
static wxString resourcesDir; static wxString resourcesDir;
wxStandardPaths std; resourcesDir = wxStandardPaths::Get().GetResourcesDir();
resourcesDir = std.GetResourcesDir();
fn = wxFileName( resourcesDir, wxT("EQDefaultCurves.xml") ); fn = wxFileName( resourcesDir, wxT("EQDefaultCurves.xml") );
} }
if( !fn.FileExists() ) if( !fn.FileExists() )