wx/wxvbam: fix GetAbsolutePath
Makes battery/state directory setting work when set as relative path
This commit is contained in:
parent
9a5833b8c1
commit
7405efef5f
|
@ -136,10 +136,10 @@ wxString wxvbamApp::GetConfigurationPath()
|
|||
|
||||
wxString wxvbamApp::GetAbsolutePath(wxString path)
|
||||
{
|
||||
wxFileName dir(path);
|
||||
wxFileName fn(path);
|
||||
|
||||
if (dir.IsRelative()) {
|
||||
wxFileName fn(GetConfigurationPath(), path);
|
||||
if (fn.IsRelative()) {
|
||||
fn.MakeRelativeTo(GetConfigurationPath());
|
||||
fn.Normalize();
|
||||
return fn.GetFullPath();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue