diff --git a/pcbnew/tools/edit_tool_move_fct.cpp b/pcbnew/tools/edit_tool_move_fct.cpp index 981c7a8ac8..54422ea520 100644 --- a/pcbnew/tools/edit_tool_move_fct.cpp +++ b/pcbnew/tools/edit_tool_move_fct.cpp @@ -244,8 +244,8 @@ void DRC_TEST_PROVIDER_COURTYARD_CLEARANCE_ON_MOVE::testCourtyardClearances() if( !zone->GetIsRuleArea() || !zone->GetDoNotAllowFootprints() ) continue; - bool disallowFront = ( zone->GetLayerSet() | LSET::FrontMask() ).any(); - bool disallowBack = ( zone->GetLayerSet() | LSET::BackMask() ).any(); + bool disallowFront = ( zone->GetLayerSet() & LSET::FrontMask() ).any(); + bool disallowBack = ( zone->GetLayerSet() & LSET::BackMask() ).any(); for( FOOTPRINT* fp : m_FpInMove ) {