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
This commit is contained in:
Seth Hillbrand 2018-06-06 22:51:01 -07:00
parent 6d77e594b5
commit 68f6e3ad44
1 changed files with 7 additions and 0 deletions

View File

@ -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();
}