Eeschema: fix issue (2 tools not working in left vertical toolbar) created by commit 7e6a6540c8
This commit is contained in:
parent
d85cf732b6
commit
2e79b93b99
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue