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:
parent
6d77e594b5
commit
68f6e3ad44
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue