Merge pull request #118 from kwkam/patch-1
wx/wxvbam: fix GetAbsolutePath
This commit is contained in:
commit
535a2d5a32
|
@ -136,10 +136,10 @@ wxString wxvbamApp::GetConfigurationPath()
|
||||||
|
|
||||||
wxString wxvbamApp::GetAbsolutePath(wxString path)
|
wxString wxvbamApp::GetAbsolutePath(wxString path)
|
||||||
{
|
{
|
||||||
wxFileName dir(path);
|
wxFileName fn(path);
|
||||||
|
|
||||||
if (dir.IsRelative()) {
|
if (fn.IsRelative()) {
|
||||||
wxFileName fn(GetConfigurationPath(), path);
|
fn.MakeRelativeTo(GetConfigurationPath());
|
||||||
fn.Normalize();
|
fn.Normalize();
|
||||||
return fn.GetFullPath();
|
return fn.GetFullPath();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue