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:
parent
cd2a4e161d
commit
9b3a382041
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user