]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied patch [ 850594 ] wxFileName(_T("/fred")).GetFullPath() asserts
authorJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 11:10:15 +0000 (11:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 11 Dec 2003 11:10:15 +0000 (11:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 062ddc41fb7c7134d514b22f1cf3b61ece76201d..07840e53728785cf418321b007f6b00eb774a7db 100644 (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;
                 }