diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index ae7955aa3f..8f928f3bc8 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -1238,6 +1238,9 @@ void FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint( int aMode ) setCurFootprintName( m_fpList->GetBaseString( selection ) ); // Delete the current footprint + if( PCB_SELECTION_TOOL* selectionTool = m_toolManager->GetTool() ) + selectionTool->ClearSelection( true /* quiet mode */ ); + GetBoard()->DeleteAllFootprints(); GetBoard()->GetNetInfo().RemoveUnusedNets();