Fix a wxWidgets alert.

Fixes #6743
https://gitlab.com/kicad/code/kicad/issues/6743
This commit is contained in:
jean-pierre charras 2020-12-15 12:39:32 +01:00
parent 9f5b12c7f7
commit 5e394836d2
1 changed files with 3 additions and 3 deletions

View File

@ -114,12 +114,12 @@ PANEL_PREV_3D::PANEL_PREV_3D( wxWindow* aParent, PCB_BASE_FRAME* aFrame, FOOTPRI
// Run the viewer control tool, it is supposed to be always active
m_toolManager->InvokeTool( "3DViewer.Control" );
m_SizerPanelView->Add( m_infobar, 0, wxEXPAND, 0 );
m_SizerPanelView->Add( m_previewPane, 1, wxEXPAND, 5 );
m_infobar = new WX_INFOBAR( this );
m_previewPane->SetInfoBar( m_infobar );
m_SizerPanelView->Add( m_infobar, 0, wxEXPAND, 0 );
m_SizerPanelView->Add( m_previewPane, 1, wxEXPAND, 5 );
for( wxEventType eventType : { wxEVT_MENU_OPEN, wxEVT_MENU_CLOSE, wxEVT_MENU_HIGHLIGHT } )
Connect( eventType, wxMenuEventHandler( PANEL_PREV_3D::OnMenuEvent ), NULL, this );