Fix segfault when starting LIB_VIEW_FRAME

This commit is contained in:
Jon Evans 2020-04-25 09:06:57 -04:00
parent e4b6487fca
commit 7911bc431a
1 changed files with 2 additions and 1 deletions

View File

@ -148,9 +148,10 @@ LIB_VIEW_FRAME::LIB_VIEW_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAME_T aFrame
GetRenderSettings()->SetDefaultPenWidth( DEFAULT_LINE_THICKNESS * IU_PER_MILS );
setupTools();
ReCreateMenuBar();
ReCreateHToolbar();
ReCreateVToolbar();
ReCreateMenuBar(); // Create after toolbars so that SyncToolbars works
m_libList = new wxListBox( this, ID_LIBVIEW_LIB_LIST, wxDefaultPosition, wxDefaultSize,
0, NULL, wxLB_HSCROLL | wxNO_BORDER );