Commit f71418ac authored by jean-pierre charras's avatar jean-pierre charras

Pcbnew: fix read .kicad_pcb file error when an outdated plot parameter is...

Pcbnew: fix read .kicad_pcb file error when an outdated plot parameter is found. Now  outdated plot parameters are just ignored
parent ab58dbfc
......@@ -353,6 +353,8 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
if( token == T_pcbplotparams )
continue;
bool skip_right = false;
switch( token )
{
case T_layerselection:
......@@ -502,10 +504,13 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
break;
default:
skipCurrent();
skipCurrent(); // skip unknown or outdated plot parameter
skip_right = true; // the closing right token is already read.
break;
}
NeedRIGHT();
if( ! skip_right )
NeedRIGHT();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment