fixed bug in FindAbsoluteValidPath() which returned cwd instead of empty string if the path was not found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
976266244c
commit
fc447c7f43
@ -354,7 +354,7 @@ wxString wxPathList::FindValidPath (const wxString& file)
|
||||
wxString wxPathList::FindAbsoluteValidPath (const wxString& file)
|
||||
{
|
||||
wxString f = FindValidPath(file);
|
||||
if ( wxIsAbsolutePath(f) )
|
||||
if ( f.empty() || wxIsAbsolutePath(f) )
|
||||
return f;
|
||||
|
||||
wxString buf;
|
||||
|
Loading…
Reference in New Issue
Block a user