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:
Robert Roebling
1999-07-01 12:54:06 +00:00
parent 1e3eca9d37
commit 53daeadab7
3 changed files with 62 additions and 2 deletions

View File

@@ -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;
}
}
}