corrected wxIsAbsolutePath for new Mac Path notation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2001-05-26 13:41:23 +00:00
parent a2f94f406e
commit cd378f94be

View File

@ -285,6 +285,14 @@ wxFileExists (const wxString& filename)
bool
wxIsAbsolutePath (const wxString& filename)
{
#ifdef __WXMAC__
if (filename != wxT(""))
{
if( filename.Find(':') != wxNOT_FOUND && filename[0] != ':' )
return TRUE ;
}
return FALSE ;
#else
if (filename != wxT(""))
{
if (filename[0] == wxT('/')
@ -299,6 +307,7 @@ wxIsAbsolutePath (const wxString& filename)
return TRUE;
}
return FALSE;
#endif
}
/*