Fix file format syntax of arcs in polygons

No format bump as there is no way to create these files yet.
This commit is contained in:
Jon Evans 2021-07-04 12:08:40 -04:00
parent 8f0104f921
commit 576d70fab0
2 changed files with 4 additions and 2 deletions

View File

@ -856,7 +856,7 @@ void PCB_IO::format( const PCB_SHAPE* aShape, int aNestLevel ) const
else
{
const SHAPE_ARC& arc = outline.Arc( ind );
m_out->Print( aNestLevel, "%s(arc (start %s) (mid %s) (end %s)",
m_out->Print( aNestLevel, "%s(arc (start %s) (mid %s) (end %s))",
nestLevel ? "" : " ",
FormatInternalUnits( arc.GetP0() ).c_str(),
FormatInternalUnits( arc.GetArcMid() ).c_str(),

View File

@ -358,7 +358,9 @@ void PCB_PARSER::parseOutlinePoints( SHAPE_LINE_CHAIN& aPoly )
SHAPE_ARC arc( arc_start, arc_mid, arc_end, 0 );
aPoly.Append( arc );
NeedRIGHT();
if( token != T_RIGHT )
Expecting( T_RIGHT );
break;
}