Run clearance rules for router status bar.

Fixes https://gitlab.com/kicad/code/kicad/issues/13605
This commit is contained in:
Jeff Young 2023-01-20 14:19:06 +00:00
parent d9a90519f9
commit 89d434255c
1 changed files with 10 additions and 0 deletions

View File

@ -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" ) );