From 98710e2742beb6c0a436497cb0a99893347f033f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 17 Oct 2020 12:39:51 +0200 Subject: [PATCH] Eeschema, parser: allows using "default" as line style. It is allowed in Eeschema code, so allow it if found in a .kicad_sch file, just in case. However it is not yet in use in .kicad_sch files to avoid breaking previous Kicad versions --- eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp | 3 ++- eeschema/schematic.keywords | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp index dec35348f2..bbefc2c9b1 100644 --- a/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp +++ b/eeschema/sch_plugins/kicad/sch_sexpr_parser.cpp @@ -458,8 +458,9 @@ void SCH_SEXPR_PARSER::parseStroke( STROKE_PARAMS& aStroke ) case T_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DOT ); break; case T_dash_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DASHDOT ); break; case T_solid: aStroke.SetPlotStyle( PLOT_DASH_TYPE::SOLID ); break; + case T_default: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DEFAULT ); break; default: - Expecting( "solid, dash, dash_dot, or dot" ); + Expecting( "solid, dash, dash_dot, dot or default" ); } NeedRIGHT(); diff --git a/eeschema/schematic.keywords b/eeschema/schematic.keywords index a74515bc25..d91382b078 100644 --- a/eeschema/schematic.keywords +++ b/eeschema/schematic.keywords @@ -25,6 +25,7 @@ dash dash_dot data date +default diameter dot edge_clock_high