Skip to content
Snippets Groups Projects
Commit 1a9f5587 authored by Jeff Young's avatar Jeff Young :flag_ua:
Browse files

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

Fixes #7766
parent 83d07dc7
No related branches found
No related tags found
Loading
Pipeline #263397333 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment