Don't leave a pad with a netinfo pointer from the footprint editor.

Fixes https://gitlab.com/kicad/code/kicad/issues/7766
This commit is contained in:
Jeff Young 2021-03-01 11:12:03 +00:00
parent 83d07dc7f7
commit 1a9f55872c
1 changed files with 2 additions and 1 deletions

View File

@ -513,9 +513,10 @@ void PCB_EDIT_FRAME::ExchangeFootprint( FOOTPRINT* aExisting, FOOTPRINT* aNew,
if( oldPad )
{
pad->SetLocalRatsnestVisible( oldPad->GetLocalRatsnestVisible() );
pad->SetNetCode( oldPad->GetNetCode() );
pad->SetPinFunction( oldPad->GetPinFunction() );
}
pad->SetNetCode( oldPad ? oldPad->GetNetCode() : NETINFO_LIST::UNCONNECTED );
}
// Copy reference