]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/exec/exec.cpp
osx regrouping
[wxWidgets.git] / 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 )
     {