Pcbnew, Netlist reader: when replacing footprints, activate option "use library local settings values" for new footprints which replace old footprints, prepared by rev 6274.

This commit is contained in:
jean-pierre charras 2015-10-23 09:14:11 +02:00
parent d63c017a0a
commit 289897e364
1 changed files with 4 additions and 3 deletions

View File

@ -2388,9 +2388,10 @@ void BOARD::ReplaceNetlist( NETLIST& aNetlist, bool aDeleteSinglePadNets,
// Copy placement and pad net names.
// optionally, copy or not local settings (like local clearances)
// if the second param is "true", previous values will be used.
// if "false", default library values will be used
footprint->CopyNetlistSettings( newFootprint, true );
// if the second parameter is "true", previous values will be used.
// if "false", the default library values of the new footprint
// will be used
footprint->CopyNetlistSettings( newFootprint, false );
Remove( footprint );
Add( newFootprint, ADD_APPEND );