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:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user