From: Vadim Zeitlin Date: Tue, 29 Jun 2004 07:52:38 +0000 (+0000) Subject: fixed bug in FindAbsoluteValidPath() which returned cwd instead of empty string if... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fc447c7f43c83835241265b48641a569be54e332 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 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 3c0a2f5285..bff8bd1bc7 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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;