]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix handling of the *.* extension case, before this fix it was being passed as a...
authorKevin Ollivier <kevino@theolliviers.com>
Sat, 6 Feb 2010 18:19:43 +0000 (18:19 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Sat, 6 Feb 2010 18:19:43 +0000 (18:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/filedlg.mm

index b4decc5dcd16a48ec2d467141ec57f5c90067b73..fd87e5b38594501ad2cd4d44387d897e61be1f33 100644 (file)
@@ -116,6 +116,10 @@ NSArray* GetTypesFromFilter( const wxString filter )
                 if (extension.length() && (extension.GetChar(0) == '.'))
                     extension = extension.Mid( 1 );
 
+                // Remove leading '*', this is for handling *.*
+                if (extension.length() && (extension.GetChar(0) == '*'))
+                    extension = extension.Mid( 1 );
+
                 if ( extension.IsEmpty() )
                 {
                     if ( types != nil )