Don't ask for layer of multi-layer item.

This commit is contained in:
Jeff Young 2022-02-18 14:53:10 +00:00
parent 1ee3ce45e8
commit 6f6cf995ba
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ bool DRC_TEST_PROVIDER_EDGE_CLEARANCE::testAgainstEdge( BOARD_ITEM* item, SHAPE*
{
const std::shared_ptr<SHAPE>& edgeShape = edge->GetEffectiveShape( Edge_Cuts );
auto constraint = m_drcEngine->EvalRules( aConstraintType, edge, item, item->GetLayer() );
auto constraint = m_drcEngine->EvalRules( aConstraintType, edge, item, UNDEFINED_LAYER );
int minClearance = constraint.GetValue().Min();
int actual;
VECTOR2I pos;