7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 16:39:17 +00:00

Report track clearance constraint from DRC rule if >= board minimum

This commit is contained in:
JamesJCode 2024-08-14 22:10:39 +01:00
parent a6a62b1be5
commit 013fa4824b
2 changed files with 2 additions and 2 deletions

View File

@ -670,7 +670,7 @@ bool PNS_KICAD_IFACE_BASE::ImportSizes( PNS::SIZES_SETTINGS& aSizes, PNS::ITEM*
if( m_ruleResolver->QueryConstraint( PNS::CONSTRAINT_TYPE::CT_CLEARANCE, &dummyTrack,
nullptr, m_startLayer, &constraint ) )
{
if( constraint.m_Value.Min() > bds.m_MinClearance )
if( constraint.m_Value.Min() >= bds.m_MinClearance )
{
aSizes.SetClearance( constraint.m_Value.Min() );
aSizes.SetClearanceSource( constraint.m_RuleName );

View File

@ -739,7 +739,7 @@ void ROUTER_TOOL::updateSizesAfterLayerSwitch( PCB_LAYER_ID targetLayer, const V
constraint = drcEngine->EvalRules( CLEARANCE_CONSTRAINT, &dummyTrack, nullptr, targetLayer );
if( constraint.m_Value.Min() > bds.m_MinClearance )
if( constraint.m_Value.Min() >= bds.m_MinClearance )
{
sizes.SetClearance( constraint.m_Value.Min() );
sizes.SetClearanceSource( constraint.GetName() );