From 4464ea5eb6251742a72689a73901a45852c9f804 Mon Sep 17 00:00:00 2001 From: Fabien Corona Date: Thu, 7 Nov 2019 02:04:00 +0100 Subject: [PATCH] Pad ratsnest settings initial value MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.17.1" This is a multi-part message in MIME format. --------------2.17.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit Pad ratsnest settings set to global settings during initilization. Fixes: lp:1848488 * https://bugs.launchpad.net/kicad/+bug/1848488 --- pcbnew/board_netlist_updater.cpp | 5 +++++ 1 file changed, 5 insertions(+) --------------2.17.1 Content-Type: text/x-patch; name="0001-Pad-ratsnest-settings-initial-value.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Pad-ratsnest-settings-initial-value.patch" diff --git a/pcbnew/board_netlist_updater.cpp b/pcbnew/board_netlist_updater.cpp index 8803952b4..8618cc8a6 100644 --- a/pcbnew/board_netlist_updater.cpp +++ b/pcbnew/board_netlist_updater.cpp @@ -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 ) --------------2.17.1--