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:
parent
83d07dc7f7
commit
1a9f55872c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue