diff --git a/qa/drc_proto/drc_test_provider_misc.cpp b/qa/drc_proto/drc_test_provider_misc.cpp index 5989ae19c2..6788d9cae1 100644 --- a/qa/drc_proto/drc_test_provider_misc.cpp +++ b/qa/drc_proto/drc_test_provider_misc.cpp @@ -117,7 +117,9 @@ void test::DRC_TEST_PROVIDER_MISC::testDisabledLayers() disabledLayers &= LSET::AllCuMask(); auto checkDisabledLayers = [&]( BOARD_ITEM* item ) -> bool { - if( ( disabledLayers & item->GetLayerSet() ).any() ) + LSET refLayers ( item->GetLayer() ); + + if( ( disabledLayers & refLayers ).any() ) { wxString msg; std::shared_ptr drcItem = DRC_ITEM::Create( DRCE_DISABLED_LAYER_ITEM );