Don't fail to get correct extension if there's a dot somewhere else in the path.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-06-23 13:38:31 +00:00
parent e453fe9656
commit 5b4567ee4c

View File

@@ -885,7 +885,7 @@ void MyFrame::OnFileExec(wxCommandEvent& WXUNUSED(event))
s_filename = filename;
wxString ext = filename.AfterFirst(_T('.'));
wxString ext = filename.AfterLast(_T('.'));
wxFileType *ft = wxTheMimeTypesManager->GetFileTypeFromExtension(ext);
if ( !ft )
{