Avoid an assert when m_dir is empty
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e33cc297dd
commit
b39badac11
@ -156,7 +156,7 @@ void wxFileDialog::GetPaths(wxArrayString& paths) const
|
||||
paths.Empty();
|
||||
|
||||
wxString dir(m_dir);
|
||||
if ( m_dir.Last() != wxT('\\') )
|
||||
if ( m_dir.empty() || m_dir.Last() != wxT('\\') )
|
||||
dir += wxT('\\');
|
||||
|
||||
size_t count = m_fileNames.GetCount();
|
||||
|
Loading…
Reference in New Issue
Block a user