Fix diff pair custom values.
Fixes: lp:1782971 * https://bugs.launchpad.net/kicad/+bug/1782971 (cherry picked from commit 53f35a3)
This commit is contained in:
parent
7dfc4e30e4
commit
7cce283fea
|
@ -31,9 +31,9 @@
|
|||
DIALOG_PNS_DIFF_PAIR_DIMENSIONS::DIALOG_PNS_DIFF_PAIR_DIMENSIONS( EDA_DRAW_FRAME* aParent,
|
||||
PNS::SIZES_SETTINGS& aSizes ) :
|
||||
DIALOG_PNS_DIFF_PAIR_DIMENSIONS_BASE( aParent ),
|
||||
m_traceWidth( aParent, m_traceWidthLabel, m_traceWidthText, m_traceWidthUnit ),
|
||||
m_traceGap( aParent, m_traceGapLabel, m_traceGapText, m_traceGapUnit ),
|
||||
m_viaGap( aParent, m_viaGapLabel, m_viaGapText, m_viaGapUnit ),
|
||||
m_traceWidth( aParent, m_traceWidthLabel, m_traceWidthText, m_traceWidthUnit, true ),
|
||||
m_traceGap( aParent, m_traceGapLabel, m_traceGapText, m_traceGapUnit, true ),
|
||||
m_viaGap( aParent, m_viaGapLabel, m_viaGapText, m_viaGapUnit, true ),
|
||||
m_sizes( aSizes )
|
||||
{
|
||||
Layout();
|
||||
|
|
|
@ -853,6 +853,11 @@ int ROUTER_TOOL::DpDimensionsDialog( const TOOL_EVENT& aEvent )
|
|||
{
|
||||
m_router->UpdateSizes( sizes );
|
||||
m_savedSizes = sizes;
|
||||
|
||||
BOARD_DESIGN_SETTINGS& bds = frame()->GetBoard()->GetDesignSettings();
|
||||
bds.SetCustomDiffPairWidth( sizes.DiffPairWidth() );
|
||||
bds.SetCustomDiffPairGap( sizes.DiffPairGap() );
|
||||
bds.SetCustomDiffPairViaGap( sizes.DiffPairViaGap() );
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue