From d05093e6f7f0e9ca0ec098491e061562c1c92ee3 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 12 Sep 2023 17:29:32 +0100 Subject: [PATCH] Don't throw the number box baby out with the bathwater.... --- pcbnew/plugins/kicad/pcb_parser.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcbnew/plugins/kicad/pcb_parser.cpp b/pcbnew/plugins/kicad/pcb_parser.cpp index c9f483f076..18a1aa1001 100644 --- a/pcbnew/plugins/kicad/pcb_parser.cpp +++ b/pcbnew/plugins/kicad/pcb_parser.cpp @@ -4948,12 +4948,19 @@ PAD* PCB_PARSER::parsePAD( FOOTPRINT* aParent ) case T_gr_line: case T_gr_circle: case T_gr_rect: - case T_gr_bbox: case T_gr_poly: case T_gr_curve: pad->AddPrimitive( parsePCB_SHAPE() ); break; + case T_gr_bbox: + { + PCB_SHAPE* numberBox = parsePCB_SHAPE(); + numberBox->SetIsAnnotationProxy(); + pad->AddPrimitive( numberBox ); + break; + } + default: Expecting( "gr_line, gr_arc, gr_circle, gr_curve, gr_rect, gr_bbox or gr_poly" ); break;