]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid an assert when m_dir is empty
authorRobin Dunn <robin@alldunn.com>
Thu, 13 Oct 2011 06:40:59 +0000 (06:40 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 13 Oct 2011 06:40:59 +0000 (06:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/filedlg.cpp

index cf0bb81e98525978ea1b80223f11b5da3b199946..e45376548d4357b4846958cd97cbc814d045b1ad 100644 (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();