]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/filedlg.cpp
added some utils (tex2rtf, helpgen, makegen) to make system
[wxWidgets.git] / src / msw / filedlg.cpp
index 0bc3273b386759b9c6b6525d0c971b5eff9258a6..17612e6fca7ab4bc381cdda26cd91cee24f59a45 100644 (file)
@@ -356,7 +356,7 @@ int wxFileDialog::ShowModal()
 
             m_filterIndex = (int)of.nFilterIndex - 1;
 
 
             m_filterIndex = (int)of.nFilterIndex - 1;
 
-            if ( of.nFileExtension && fileNameBuffer[ of.nFileExtension-1] != wxT('.') )
+            if ( !of.nFileExtension || (of.nFileExtension && fileNameBuffer[ of.nFileExtension-1] != wxT('.')) )
             {                                    // user has typed an filename
                 // without an extension:
 
             {                                    // user has typed an filename
                 // without an extension: