wxIsAbsolutePath was correct.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2001-07-14 14:28:28 +00:00
parent ef70f0ecdb
commit 2985ad5dee

View File

@@ -287,16 +287,16 @@ bool
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(""))
{