Don't double-add/remove items from connectivity.

BOARD::Add()/Remove() already do this.
This commit is contained in:
Jeff Young
2025-04-21 18:20:52 +01:00
parent 519b29472f
commit c1b1c689ad
-2
View File
@@ -703,7 +703,6 @@ void BOARD_COMMIT::Revert()
break;
view->Remove( boardItem );
connectivity->Remove( boardItem );
if( FOOTPRINT* parentFP = boardItem->GetParentFootprint() )
{
@@ -723,7 +722,6 @@ void BOARD_COMMIT::Revert()
break;
view->Add( boardItem );
connectivity->Add( boardItem );
// Note: parent can be nullptr, because entry.m_parent is only set for children
// of footprints.