]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't fail to get correct extension if there's a dot somewhere else in the path.
authorJulian Smart <julian@anthemion.co.uk>
Mon, 23 Jun 2008 13:38:31 +0000 (13:38 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 23 Jun 2008 13:38:31 +0000 (13:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/exec/exec.cpp

index c8718837263b1e4af03d95bda3cd33272006d162..34a8ff5c6269e2a8e844d2e13720d1650de72ef0 100644 (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 )
     {