X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/678c48b37d06743464a6fca756dc0ca056a796e9..0d58bb65789a8efec581d2beb2117669d1d1db9d:/src/common/filefn.cpp 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("")) {