Eeschema: fix issue (2 tools not working in left vertical toolbar) created by commit 7e6a6540c8

This commit is contained in:
jean-pierre charras 2018-01-16 19:39:31 +01:00
parent d85cf732b6
commit 2e79b93b99
1 changed files with 3 additions and 4 deletions

View File

@ -318,16 +318,15 @@ void SCH_EDIT_FRAME::ReCreateOptToolbar()
void SCH_EDIT_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
{
if( m_canvas )
return;
int id = event.GetId();
switch( id )
{
case ID_TB_OPTIONS_HIDDEN_PINS:
m_showAllPins = m_optionsToolBar->GetToolToggled( id );
m_canvas->Refresh();
if( m_canvas )
m_canvas->Refresh();
break;
case ID_TB_OPTIONS_BUS_WIRES_ORIENT: