From: Julian Smart Date: Thu, 11 Dec 2003 11:10:15 +0000 (+0000) Subject: Applied patch [ 850594 ] wxFileName(_T("/fred")).GetFullPath() asserts X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b3a38204110b40cfab14b736f15b32f14956d72 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 --- diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 062ddc41fb..07840e5372 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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; }