Browse Source

Reset tools before switching footprints.

Fixes: lp:1776777
* https://bugs.launchpad.net/kicad/+bug/1776777
pull/17/head
Jeff Young 8 years ago
parent
commit
b37969f584
  1. 6
      pcbnew/footprint_viewer_frame.cpp

6
pcbnew/footprint_viewer_frame.cpp

@ -466,9 +466,9 @@ void FOOTPRINT_VIEWER_FRAME::ClickOnFootprintList( wxCommandEvent& event )
{
setCurFootprintName( name );
SetCurItem( NULL );
// Delete the current footprint
// Delete the current footprint (MUST reset tools first)
GetToolManager()->ResetTools( TOOL_BASE::MODEL_RELOAD );
SetCurItem( nullptr );
GetBoard()->m_Modules.DeleteAll();
LIB_ID id;

Loading…
Cancel
Save