drc_proto: use GetLayer() in disabled layer tests

This commit is contained in:
Tomasz Wlostowski 2020-09-05 01:12:15 +02:00
parent b53d753796
commit 91860dae2d
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ void test::DRC_TEST_PROVIDER_MISC::testDisabledLayers()
disabledLayers &= LSET::AllCuMask(); disabledLayers &= LSET::AllCuMask();
auto checkDisabledLayers = [&]( BOARD_ITEM* item ) -> bool { auto checkDisabledLayers = [&]( BOARD_ITEM* item ) -> bool {
if( ( disabledLayers & item->GetLayerSet() ).any() ) LSET refLayers ( item->GetLayer() );
if( ( disabledLayers & refLayers ).any() )
{ {
wxString msg; wxString msg;
std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_DISABLED_LAYER_ITEM ); std::shared_ptr<DRC_ITEM> drcItem = DRC_ITEM::Create( DRCE_DISABLED_LAYER_ITEM );