Don't force disallow tests to a particular layer.

Fixes https://gitlab.com/kicad/code/kicad/issues/7552
This commit is contained in:
Jeff Young 2021-02-16 15:50:43 +00:00
parent 4408897b87
commit 015c4d5779
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ bool DRC_TEST_PROVIDER_DISALLOW::Run()
[&]( BOARD_ITEM* item )
{
auto constraint = m_drcEngine->EvalRules( DISALLOW_CONSTRAINT, item, nullptr,
item->GetLayer() );
UNDEFINED_LAYER );
if( constraint.m_DisallowFlags )
{