]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/filedlg.cpp
Fixed wxListCtrl::SetTextColour to set the RGB value instead of the
[wxWidgets.git] / src / gtk1 / filedlg.cpp
index 7513762b20d3ea6b43f7662d65ce7cae4ed04c3d..086a593ef5c586f71864efcd15969c33cd58980d 100644 (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;
+       }
     }
 }