Applied patch [ 850594 ] wxFileName(_T("/fred")).GetFullPath() asserts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2003-12-11 11:10:15 +00:00
parent cd2a4e161d
commit 9b3a382041

View File

@ -1270,7 +1270,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const
// normally the absolute file names start with a slash
// with one exception: the ones like "~/foo.bar" don't
// have it
if ( m_dirs[0u] != _T('~') )
if ( m_dirs.IsEmpty() || m_dirs[0u] != _T('~') )
{
fullpath += wxFILE_SEP_PATH_UNIX;
}