Commit 6bd572f5 authored by dickelbeck's avatar dickelbeck
Browse files

fix case where first edge segment is an arc

parent 9536bdce
Loading
Loading
Loading
Loading
+64 −63
Original line number Diff line number Diff line
@@ -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;