Pad ratsnest settings initial value

Pad ratsnest settings set to global settings during initilization.

Fixes: lp:1848488
* https://bugs.launchpad.net/kicad/+bug/1848488

(cherry picked from commit 29ce76b4e4)
(slightly modified due to settings structure difference between
master and 5.1)
This commit is contained in:
Fabien Corona 2019-11-07 02:04:00 +01:00 committed by Ian McInerney
parent 4130ce2b93
commit e299343807
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 = m_board->IsElementVisible( LAYER_RATSNEST );
for( auto pad : footprint->Pads() )
pad->SetLocalRatsnestVisible( set_ratsnest );
m_newFootprintsCount++;
if( !m_isDryRun )