From 2e79b93b9978ce8003745a4c8a95b061d877e878 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 16 Jan 2018 19:39:31 +0100 Subject: [PATCH] Eeschema: fix issue (2 tools not working in left vertical toolbar) created by commit 7e6a6540c8bab5f58047c19064139d0ea386fb4e --- eeschema/tool_sch.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/eeschema/tool_sch.cpp b/eeschema/tool_sch.cpp index 651ebbef39..9f969194c4 100644 --- a/eeschema/tool_sch.cpp +++ b/eeschema/tool_sch.cpp @@ -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: