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:
parent
a2f94f406e
commit
cd378f94be
@ -285,6 +285,14 @@ wxFileExists (const wxString& filename)
|
|||||||
bool
|
bool
|
||||||
wxIsAbsolutePath (const wxString& filename)
|
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 != wxT(""))
|
||||||
{
|
{
|
||||||
if (filename[0] == wxT('/')
|
if (filename[0] == wxT('/')
|
||||||
@ -299,6 +307,7 @@ wxIsAbsolutePath (const wxString& filename)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user