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:
Robin Dunn 2011-10-13 06:40:59 +00:00
parent e33cc297dd
commit b39badac11

View File

@ -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();