]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected wxIsAbsolutePath for new Mac Path notation
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 May 2001 13:41:23 +0000 (13:41 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 May 2001 13:41:23 +0000 (13:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index 8108e29a516b27dd23b4be63b202ad41886fb2e6..888fabd96c87d9934d47a4eead6268d874adfb19 100644 (file)
@@ -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
 }
 
 /*