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:
parent
19d5cc7548
commit
a1a9440091
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue