X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a3912f2aba8f5232315f7ca2206c50295ec21ea..0f314c30b8c4ffbd7d87146f72be7a061d506235:/src/common/filename.cpp 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; }