From 46d816fd4dbdc9adced43b247c92bcb7f5788269 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Mon, 9 Feb 2009 15:33:43 +0000 Subject: [PATCH] bug This seems to be a bug in the wxWidgets library or the Mac OS X's file globbing handler. There should be no reason the mask cannot have two '*'s in it. The wildcard part of the mask component should be discarded when the user picks an actual file. For now, we work around this bug by removing the 2nd mask. --- eeschema/netlist_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/netlist_control.cpp b/eeschema/netlist_control.cpp index 7fd5d58495..6e19de7712 100644 --- a/eeschema/netlist_control.cpp +++ b/eeschema/netlist_control.cpp @@ -466,7 +466,7 @@ void WinEDA_NetlistFrame::GenNetlist( wxCommandEvent& event ) break; } - Mask = wxT( "*" ) + FileExt + wxT( "*" ); + Mask = wxT( "*" ) + FileExt; ChangeFileNameExt( FullFileName, FileExt ); FullFileName = FullFileName.AfterLast( '/' ); FullFileName = EDA_FileSelector( _( "Netlist files:" ),