Merge pull request #118 from kwkam/patch-1

wx/wxvbam: fix GetAbsolutePath
This commit is contained in:
Zach Bacon 2017-05-12 09:02:37 -04:00 committed by GitHub
commit 535a2d5a32
1 changed files with 3 additions and 3 deletions

View File

@ -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();
} }