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)
{
wxFileName dir(path);
wxFileName fn(path);
if (dir.IsRelative()) {
wxFileName fn(GetConfigurationPath(), path);
if (fn.IsRelative()) {
fn.MakeRelativeTo(GetConfigurationPath());
fn.Normalize();
return fn.GetFullPath();
}