From a1a9440091967f93f502e5fe13a2434cfb2a5b2b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 12 Jun 2017 17:07:32 +0200 Subject: [PATCH] Pcbnew fix incorrect UI behavior of Zoom to selection in legacy canvas. UI behavior in GAL canvas is still incorrect. --- pcbnew/edit.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/pcbnew/edit.cpp b/pcbnew/edit.cpp index 67dcb3d76e..5d7cd13e64 100644 --- a/pcbnew/edit.cpp +++ b/pcbnew/edit.cpp @@ -1424,9 +1424,6 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent ) int id = aEvent.GetId(); int lastToolID = GetToolId(); - if( GetToolId() == id ) - return; - INSTALL_UNBUFFERED_DC( dc, m_canvas ); DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions();