Pad ratsnest settings initial value

Pad ratsnest settings set to global settings during initilization.

Fixes: lp:1848488
* https://bugs.launchpad.net/kicad/+bug/1848488
This commit is contained in:
Fabien Corona 2019-11-07 02:04:00 +01:00 committed by Seth Hillbrand
parent 81020e8824
commit 29ce76b4e4
1 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,11 @@ MODULE* BOARD_NETLIST_UPDATER::addNewComponent( COMPONENT* aComponent )
aComponent->GetFPID().Format().wx_str() );
m_reporter->Report( msg, REPORTER::RPT_ACTION );
// Set the pads ratsnest settings to the global settings
bool set_ratsnest = ((PCB_DISPLAY_OPTIONS*)m_frame->GetDisplayOptions())->m_ShowGlobalRatsnest;
for ( auto pad : footprint->Pads() )
pad->SetLocalRatsnestVisible( set_ratsnest );
m_newFootprintsCount++;
if( !m_isDryRun )