Corrected bug in filedlg.
Added more stream tests to typetest sample. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,7 +165,11 @@ void wxFileDialog::SetPath(const wxString& path)
|
||||
{
|
||||
wxString ext;
|
||||
wxSplitPath(path, &m_dir, &m_fileName, &ext);
|
||||
m_fileName += ext;
|
||||
if (!ext.IsEmpty())
|
||||
{
|
||||
m_fileName += _T(".");
|
||||
m_fileName += ext;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user