Applied some of patch [ 688466 ] MSVC7 build & bug fixes
by Darren Whobrey git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -273,7 +273,7 @@ void wxGenericDirDialog::OnNew( wxCommandEvent& WXUNUSED(event) )
|
||||
|
||||
wxString new_name( _("NewName") );
|
||||
wxString path( data->m_path );
|
||||
if (path.Last() != wxFILE_SEP_PATH)
|
||||
if (!wxEndsWithPathSeparator(path))
|
||||
path += wxFILE_SEP_PATH;
|
||||
path += new_name;
|
||||
if (wxFileExists(path))
|
||||
@@ -287,7 +287,7 @@ void wxGenericDirDialog::OnNew( wxCommandEvent& WXUNUSED(event) )
|
||||
new_name += num;
|
||||
|
||||
path = data->m_path;
|
||||
if (path.Last() != wxFILE_SEP_PATH)
|
||||
if (!wxEndsWithPathSeparator(path))
|
||||
path += wxFILE_SEP_PATH;
|
||||
path += new_name;
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user