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:
Vadim Zeitlin 2004-06-29 07:52:38 +00:00
parent 976266244c
commit fc447c7f43

View File

@ -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;