From 68f6e3ad44e99501274cf6bb85787f30b21b4f0b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 6 Jun 2018 22:51:01 -0700 Subject: [PATCH] pcbnew: Differential pairs obey netclass settings PNS routing options allow trace width to be chosen by the assigned netclass. This extends that to differential pair width/gap settings as well. Fixes: lp:1672126 * https://bugs.launchpad.net/kicad/+bug/1672126 --- pcbnew/router/pns_sizes_settings.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/router/pns_sizes_settings.cpp b/pcbnew/router/pns_sizes_settings.cpp index 4dc94eab6d..58a158b981 100644 --- a/pcbnew/router/pns_sizes_settings.cpp +++ b/pcbnew/router/pns_sizes_settings.cpp @@ -124,6 +124,13 @@ void SIZES_SETTINGS::Init( BOARD* aBoard, ITEM* aStartItem, int aNet ) m_viaDrill = bds.GetCurrentViaDrill(); } + // Set the differential pair width/gap using netclass if selected + if( ( bds.UseNetClassTrack() && netClass != NULL ) ) + { + m_diffPairWidth = netClass->GetDiffPairWidth(); + m_diffPairGap = netClass->GetDiffPairGap(); + } + m_layerPairs.clear(); }