From: Robert Roebling Date: Sat, 14 Jul 2001 14:28:28 +0000 (+0000) Subject: wxIsAbsolutePath was correct. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2985ad5deecdcb48611ea71ac43e3c2f256c4c08 wxIsAbsolutePath was correct. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index fef89de43f..1cfa5825c5 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -287,16 +287,16 @@ bool wxIsAbsolutePath (const wxString& filename) { #ifdef __WXMAC__ - if (filename != wxT("")) - { -// This seems wrong to me, RR. FIXME. + if (filename != wxT("")) + { + // This seems wrong to me, but there is no fix. since + // "MacOS:MyText.txt" is absolute whereas "MyDir:MyText.txt" + // is not. Or maybe ":MyDir:MyText.txt" has to be used? RR. - if( filename.Find(':') != wxNOT_FOUND && filename[0] != ':' ) - return TRUE ; - -// if (filename[0] == ':') return TRUE ; - } - return FALSE ; + if (filename.Find(':') != wxNOT_FOUND && filename[0] != ':') + return TRUE ; + } + return FALSE ; #else if (filename != wxT("")) {