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:
parent
a6a62b1be5
commit
013fa4824b
pcbnew/router
@ -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 );
|
||||
|
@ -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() );
|
||||
|
Loading…
Reference in New Issue
Block a user