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
This commit is contained in:
jean-pierre charras 2020-10-17 12:39:51 +02:00
parent a9619c051b
commit 98710e2742
2 changed files with 3 additions and 1 deletions

View File

@ -458,8 +458,9 @@ void SCH_SEXPR_PARSER::parseStroke( STROKE_PARAMS& aStroke )
case T_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DOT ); break; case T_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DOT ); break;
case T_dash_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DASHDOT ); break; case T_dash_dot: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DASHDOT ); break;
case T_solid: aStroke.SetPlotStyle( PLOT_DASH_TYPE::SOLID ); break; case T_solid: aStroke.SetPlotStyle( PLOT_DASH_TYPE::SOLID ); break;
case T_default: aStroke.SetPlotStyle( PLOT_DASH_TYPE::DEFAULT ); break;
default: default:
Expecting( "solid, dash, dash_dot, or dot" ); Expecting( "solid, dash, dash_dot, dot or default" );
} }
NeedRIGHT(); NeedRIGHT();

View File

@ -25,6 +25,7 @@ dash
dash_dot dash_dot
data data
date date
default
diameter diameter
dot dot
edge_clock_high edge_clock_high