Commit 6bd572f5 authored by dickelbeck's avatar dickelbeck

fix case where first edge segment is an arc

parent 9536bdce
......@@ -748,14 +748,11 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr
items.Remove( 0 );
prevPt = graphic->GetEnd();
path->AppendPoint( mapPt( graphic->GetStart() ) );
path->AppendPoint( mapPt( graphic->GetEnd() ) );
while( items.GetCount() )
{
graphic = findPoint( prevPt, &items );
if( graphic )
// do not append the other end point yet, this first edge item might be an arc
for(;;)
{
switch( graphic->m_Shape )
{
......@@ -831,8 +828,12 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr
path->AppendPoint( nextPt );
}
}
}
else
if( items.GetCount() == 0 )
break;
graphic = findPoint( prevPt, &items );
if( !graphic )
{
wxString error;
......
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