]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected path splitting for mac relative paths
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 28 Jan 2002 21:44:47 +0000 (21:44 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 28 Jan 2002 21:44:47 +0000 (21:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 7dc9c0a1962302872c89978e80202f4313576a79..6e4fe199f635ea194c776e29e491ed3f21a9dd0e 100644 (file)
@@ -1484,7 +1484,10 @@ void wxFileName::SplitPath(const wxString& fullpathWithVolume,
             // the path equal to something like '/', not empty, for the files
             // immediately under root directory
             size_t len = posLastSlash;
-            if ( !len )
+
+            // this rule does not apply to mac since we do not start with colons (sep)
+            // except for relative paths
+            if ( !len && format != wxPATH_MAC)
                 len++;
 
             *pstrPath = fullpath.Left(len);