mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 08:38:39 +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:
parent
ba12551d4d
commit
4ffd3ef681
@ -986,8 +986,7 @@ void EqualizationDialog::LoadCurves(wxString fileName, bool append)
|
||||
{ // Default file not found in the data dir. Fall back to Resources dir.
|
||||
// See http://docs.wxwidgets.org/trunk/classwx_standard_paths.html#5514bf6288ee9f5a0acaf065762ad95d
|
||||
static wxString resourcesDir;
|
||||
wxStandardPaths std;
|
||||
resourcesDir = std.GetResourcesDir();
|
||||
resourcesDir = wxStandardPaths::Get().GetResourcesDir();
|
||||
fn = wxFileName( resourcesDir, wxT("EQDefaultCurves.xml") );
|
||||
}
|
||||
if( !fn.FileExists() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user