mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't leave selection lying around when swapping out footprints.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14971
This commit is contained in:
parent
b44c547aa6
commit
da558f57d4
@ -1216,6 +1216,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<PCB_SELECTION_TOOL>() )
|
||||
selectionTool->ClearSelection( true /* quiet mode */ );
|
||||
|
||||
GetBoard()->DeleteAllFootprints();
|
||||
GetBoard()->GetNetInfo().RemoveUnusedNets();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user