Gerbview: bug fix: crash when changing selected language
This commit is contained in:
parent
c89070da83
commit
4dee08c318
|
@ -72,9 +72,9 @@ void GERBVIEW_FRAME::ReCreateMenuBar( void )
|
|||
// Recent drill files
|
||||
static wxMenu* openRecentDrlMenu;
|
||||
if( openRecentDrlMenu )
|
||||
wxGetApp().m_fileHistory.RemoveMenu( openRecentDrlMenu );
|
||||
m_drillFileHistory.RemoveMenu( openRecentDrlMenu );
|
||||
openRecentDrlMenu = new wxMenu();
|
||||
wxGetApp().m_fileHistory.UseMenu( openRecentDrlMenu );
|
||||
m_drillFileHistory.UseMenu( openRecentDrlMenu );
|
||||
m_drillFileHistory.AddFilesToMenu( );
|
||||
ADD_MENUITEM_WITH_HELP_AND_SUBMENU( fileMenu, openRecentDrlMenu,
|
||||
wxID_ANY,
|
||||
|
|
Loading…
Reference in New Issue