Pcbnew fix incorrect UI behavior of Zoom to selection in legacy canvas. UI behavior in GAL canvas is still incorrect.

This commit is contained in:
jean-pierre charras 2017-06-12 17:07:32 +02:00
parent 19d5cc7548
commit a1a9440091
1 changed files with 0 additions and 3 deletions

View File

@ -1424,9 +1424,6 @@ void PCB_EDIT_FRAME::OnSelectTool( wxCommandEvent& aEvent )
int id = aEvent.GetId(); int id = aEvent.GetId();
int lastToolID = GetToolId(); int lastToolID = GetToolId();
if( GetToolId() == id )
return;
INSTALL_UNBUFFERED_DC( dc, m_canvas ); INSTALL_UNBUFFERED_DC( dc, m_canvas );
DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions(); DISPLAY_OPTIONS* displ_opts = (DISPLAY_OPTIONS*)GetDisplayOptions();