]> git.saurik.com Git - wxWidgets.git/commitdiff
wxIsAbsolutePath was correct.
authorRobert Roebling <robert@roebling.de>
Sat, 14 Jul 2001 14:28:28 +0000 (14:28 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 14 Jul 2001 14:28:28 +0000 (14:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index fef89de43f3e0d7031e4a2150389e40e2c63044d..1cfa5825c5edc29942be0c7a9643b5f5f67823e4 100644 (file)
@@ -287,16 +287,16 @@ bool
 wxIsAbsolutePath (const wxString& filename)
 {
 #ifdef __WXMAC__
 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(""))
     {
 #else
   if (filename != wxT(""))
     {