From e5586fb97487f8d8843cdd8ee0f70e40773463a3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 13 Aug 2021 21:27:31 +0100 Subject: [PATCH] Accept legacy hole token as well as new hole_size. --- pcbnew/drc/drc_rule_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/drc/drc_rule_parser.cpp b/pcbnew/drc/drc_rule_parser.cpp index e4bb5f218a..19dc3e9f58 100644 --- a/pcbnew/drc/drc_rule_parser.cpp +++ b/pcbnew/drc/drc_rule_parser.cpp @@ -269,6 +269,7 @@ void DRC_RULES_PARSER::parseConstraint( DRC_RULE* aRule ) case T_clearance: constraint.m_Type = CLEARANCE_CONSTRAINT; break; case T_hole_clearance: constraint.m_Type = HOLE_CLEARANCE_CONSTRAINT; break; case T_edge_clearance: constraint.m_Type = EDGE_CLEARANCE_CONSTRAINT; break; + case T_hole: // legacy token case T_hole_size: constraint.m_Type = HOLE_SIZE_CONSTRAINT; break; case T_hole_to_hole: constraint.m_Type = HOLE_TO_HOLE_CONSTRAINT; break; case T_courtyard_clearance: constraint.m_Type = COURTYARD_CLEARANCE_CONSTRAINT; break;