From 9b3a38204110b40cfab14b736f15b32f14956d72 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 11 Dec 2003 11:10:15 +0000 Subject: [PATCH] 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 --- src/common/filename.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.0