From: Stefan Csomor Date: Mon, 28 Jan 2002 21:44:47 +0000 (+0000) Subject: corrected path splitting for mac relative paths X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/91b4bd63177025704dd39679a2a7c4198eeb7909 corrected path splitting for mac relative paths git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 7dc9c0a196..6e4fe199f6 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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);