From d8ba7b3af8a75eddbc65a0da9bdf12e4bf83a48f Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 25 Apr 2013 07:25:47 -0500 Subject: [PATCH] pcb_parser failed on (fill yes (arc_segments 16) (thermal_gap 1.99898) (thermal_bridge_width 1.99898)) See http://tech.groups.yahoo.com/group/kicad-users/message/15105 --- pcbnew/pcb_parser.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 607da461e7..5934d1ed0b 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -2488,18 +2488,22 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR ) // @todo Create an enum for fill modes. zone->SetFillMode( token == T_polygon ? 0 : 1 ); + NeedRIGHT(); break; case T_arc_segments: zone->SetArcSegmentCount( parseInt( "arc segment count" ) ); + NeedRIGHT(); break; case T_thermal_gap: zone->SetThermalReliefGap( parseBoardUnits( T_thermal_gap ) ); + NeedRIGHT(); break; case T_thermal_bridge_width: zone->SetThermalReliefCopperBridge( parseBoardUnits( T_thermal_bridge_width ) ); + NeedRIGHT(); break; case T_smoothing: @@ -2520,21 +2524,19 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR ) default: Expecting( "none, chamfer, or fillet" ); } - + NeedRIGHT(); break; case T_radius: zone->SetCornerRadius( parseBoardUnits( "corner radius" ) ); + NeedRIGHT(); break; default: Expecting( "mode, arc_segments, thermal_gap, thermal_bridge_width, " "smoothing, or radius" ); } - - NeedRIGHT(); } - break; case T_keepout: