typos and buglets

This commit is contained in:
dickelbeck 2008-05-05 20:13:54 +00:00
parent 2edabd5556
commit fec9498f8d
1 changed files with 4 additions and 5 deletions

View File

@ -812,12 +812,13 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr
case S_CIRCLE: case S_CIRCLE:
// do not output a circle, freerouter does not understand it. // do not output a circle, freerouter does not understand it.
// this might be a mounting hole or something, ignore it without error // this might be a mounting hole or something, ignore it without error
break;
default: default:
{ {
wxString error; wxString error;
error.Printf( _("Unsupported DRAWSEGMENT type %s", error.Printf( _("Unsupported DRAWSEGMENT type %s"),
BOARD_ITEM::ShowShape( (Track_Shapes) graphic->m_Shape ).GetData() ); BOARD_ITEM::ShowShape( (Track_Shapes) graphic->m_Shape ).GetData() );
ThrowIOError( error ); ThrowIOError( error );
@ -861,6 +862,8 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr
aBoard->ComputeBoundaryBox(); aBoard->ComputeBoundaryBox();
RECTANGLE* rect = new RECTANGLE( boundary ); RECTANGLE* rect = new RECTANGLE( boundary );
boundary->rectangle = rect;
rect->layer_id = "pcb"; rect->layer_id = "pcb";
@ -871,10 +874,6 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr
rect->SetCorners( mapPt( aBoard->m_BoundaryBox.GetOrigin() ), rect->SetCorners( mapPt( aBoard->m_BoundaryBox.GetOrigin() ),
mapPt( bottomRight ) ); mapPt( bottomRight ) );
boundary->rectangle = rect;
pcb->structure->SetBOUNDARY( boundary );
} }
} }