Browse Source

Add syntax check for duplicate 'layer' keyword

fusion360
Thomas Gambier 2 years ago
committed by Seth Hillbrand
parent
commit
1882445b40
  1. 2
      pcbnew/drc/drc_rule_parser.cpp

2
pcbnew/drc/drc_rule_parser.cpp

@ -237,6 +237,8 @@ std::shared_ptr<DRC_RULE> DRC_RULES_PARSER::parseDRC_RULE()
break;
case T_layer:
if( rule->m_LayerCondition != LSET::AllLayersMask() )
reportError( _( "'layer' keyword already present." ) );
rule->m_LayerSource = FromUTF8();
rule->m_LayerCondition = parseLayer();
break;

Loading…
Cancel
Save