git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@350
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GtkFileSelection *sel = GTK_FILE_SELECTION(m_widget);
m_path.Append(m_dir);
- if(m_path.Last()!='/') m_path.Append('/');
+ if(! m_path.IsEmpty() && m_path.Last()!='/') m_path.Append('/');
m_path.Append(m_fileName);
if(m_path.Length()>1) gtk_file_selection_set_filename(sel,m_path);
GtkFileSelection *sel = GTK_FILE_SELECTION(m_widget);
m_path.Append(m_dir);
- if(m_path.Last()!='/') m_path.Append('/');
+ if(! m_path.IsEmpty() && m_path.Last()!='/') m_path.Append('/');
m_path.Append(m_fileName);
if(m_path.Length()>1) gtk_file_selection_set_filename(sel,m_path);