Pcbnew: fix read .kicad_pcb file error when an outdated plot parameter is found. Now outdated plot parameters are just ignored
This commit is contained in:
parent
ab58dbfced
commit
f71418ace9
|
@ -353,6 +353,8 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
|
||||||
if( token == T_pcbplotparams )
|
if( token == T_pcbplotparams )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
bool skip_right = false;
|
||||||
|
|
||||||
switch( token )
|
switch( token )
|
||||||
{
|
{
|
||||||
case T_layerselection:
|
case T_layerselection:
|
||||||
|
@ -502,9 +504,12 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
skipCurrent();
|
skipCurrent(); // skip unknown or outdated plot parameter
|
||||||
|
skip_right = true; // the closing right token is already read.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( ! skip_right )
|
||||||
NeedRIGHT();
|
NeedRIGHT();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue