From fc447c7f43c83835241265b48641a569be54e332 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 29 Jun 2004 07:52:38 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.0