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(""))
{
while ( wxEndsWithPathSeparator(strPath) )
{
size_t len = strPath.length();
- if ( len == 1 || strPath[len - 1] == _T(':') )
+ if ( len == 1 || (len == 3 && strPath[len - 2] == _T(':')) )
break;
strPath.Truncate(len - 1);