From bd4278140f18b58a7c5aa11f7a3bddb8c89e7c7f Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 4 Dec 2023 13:46:31 -0800 Subject: [PATCH] Allow graphical fill to be read as boolean We had been allowing yes/solid/none with yes/solid both representing true and none representing false. This adds the complimentary boolean Fixes https://gitlab.com/kicad/code/kicad/-/issues/16262 --- pcbnew/plugins/kicad/pcb_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/plugins/kicad/pcb_parser.cpp b/pcbnew/plugins/kicad/pcb_parser.cpp index 259d7b57d3..1e203fd754 100644 --- a/pcbnew/plugins/kicad/pcb_parser.cpp +++ b/pcbnew/plugins/kicad/pcb_parser.cpp @@ -2957,11 +2957,12 @@ PCB_SHAPE* PCB_PARSER::parsePCB_SHAPE( BOARD_ITEM* aParent ) break; case T_none: + case T_no: shape->SetFilled( false ); break; default: - Expecting( "yes, none, solid" ); + Expecting( "yes, no, solid, none" ); } }