Run clearance rules for router status bar.
Fixes https://gitlab.com/kicad/code/kicad/issues/13605
This commit is contained in:
parent
d9a90519f9
commit
89d434255c
|
@ -599,6 +599,16 @@ bool PNS_KICAD_IFACE_BASE::ImportSizes( PNS::SIZES_SETTINGS& aSizes, PNS::ITEM*
|
|||
aSizes.SetMinClearance( bds.m_MinClearance );
|
||||
aSizes.SetClearanceSource( _( "board minimum clearance" ) );
|
||||
|
||||
if( m_ruleResolver->QueryConstraint( PNS::CONSTRAINT_TYPE::CT_CLEARANCE, aStartItem, nullptr,
|
||||
m_startLayer, &constraint ) )
|
||||
{
|
||||
if( constraint.m_Value.Min() > bds.m_MinClearance )
|
||||
{
|
||||
aSizes.SetMinClearance( constraint.m_Value.Min() );
|
||||
aSizes.SetClearanceSource( constraint.m_RuleName );
|
||||
}
|
||||
}
|
||||
|
||||
int trackWidth = bds.m_TrackMinWidth;
|
||||
bool found = false;
|
||||
aSizes.SetWidthSource( _( "board minimum track width" ) );
|
||||
|
|
Loading…
Reference in New Issue