From ba78c6ec5ed0fdb6ebdae4ad25ef57c3d383f5ed Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sun, 1 Nov 2009 14:25:58 +0000 Subject: [PATCH] add a compile time option to report an islanded circle as a specctra_export error --- pcbnew/specctra_export.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pcbnew/specctra_export.cpp b/pcbnew/specctra_export.cpp index 47156de2c2..1499444a78 100644 --- a/pcbnew/specctra_export.cpp +++ b/pcbnew/specctra_export.cpp @@ -783,16 +783,27 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IOErr break; case S_CIRCLE: +#if 0 // do not output a circle, freerouter does not understand it. // this might be a mounting hole or something, ignore it without error + // because some of our demo boards have used the edges pcb layer to + // hold islanded circles, rather than simply using holes. break; +#else + // Do not output a circle, freerouter does not understand it. + // tell user his board has a problem, this is better than silently + // ignoring the error. "edges pcb" layer should not be used + // to hold islanded circles which could or should better be done + // as simple holes. (Some of our demo boards have this problem.) + // fall thru here to report the error. +#endif default: { wxString error; error.Printf( _("Unsupported DRAWSEGMENT type %s"), - BOARD_ITEM::ShowShape( (Track_Shapes) graphic->m_Shape ).GetData() ); + GetChars( BOARD_ITEM::ShowShape( (Track_Shapes) graphic->m_Shape ) ) ); ThrowIOError( error ); }