From cd378f94bec1edc0f991ee55b02bfe3084de94e0 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 26 May 2001 13:41:23 +0000 Subject: [PATCH] corrected wxIsAbsolutePath for new Mac Path notation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 8108e29a51..888fabd96c 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -285,6 +285,14 @@ wxFileExists (const wxString& filename) bool wxIsAbsolutePath (const wxString& filename) { +#ifdef __WXMAC__ + if (filename != wxT("")) + { + if( filename.Find(':') != wxNOT_FOUND && filename[0] != ':' ) + return TRUE ; + } + return FALSE ; +#else if (filename != wxT("")) { if (filename[0] == wxT('/') @@ -299,6 +307,7 @@ wxIsAbsolutePath (const wxString& filename) return TRUE; } return FALSE; +#endif } /*