Index: trunk/src_plugins/io_pcb/parse_y.c =================================================================== --- trunk/src_plugins/io_pcb/parse_y.c (revision 6817) +++ trunk/src_plugins/io_pcb/parse_y.c (revision 6818) @@ -2216,7 +2216,7 @@ case 73: #line 869 "parse_y.y" /* yacc.c:1646 */ { - if ((yyvsp[-4].integer) <= 0 || (yyvsp[-4].integer) > PCB_MAX_LAYER + 2) + if ((yyvsp[-4].integer) <= 0 || (yyvsp[-4].integer) > PCB_MAX_LAYER) { yyerror("Layernumber out of range"); YYABORT; Index: trunk/src_plugins/io_pcb/parse_y.y =================================================================== --- trunk/src_plugins/io_pcb/parse_y.y (revision 6817) +++ trunk/src_plugins/io_pcb/parse_y.y (revision 6818) @@ -867,7 +867,7 @@ /* name */ : T_LAYER '(' INTEGER STRING opt_string ')' '(' { - if ($3 <= 0 || $3 > PCB_MAX_LAYER + 2) + if ($3 <= 0 || $3 > PCB_MAX_LAYER) { yyerror("Layernumber out of range"); YYABORT;