]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filename.cpp
added the missing (newly added) colours to the switch
[wxWidgets.git] / src / common / filename.cpp
index 7dc9c0a1962302872c89978e80202f4313576a79..5474b78d004a89c283950999d720bc2c247add30 100644 (file)
@@ -732,7 +732,7 @@ bool wxFileName::Rmdir( const wxString &dir )
 // path normalization
 // ----------------------------------------------------------------------------
 
-bool wxFileName::Normalize(wxPathNormalize flags,
+bool wxFileName::Normalize(int flags,
                            const wxString& cwd,
                            wxPathFormat format)
 {
@@ -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);