resolved the zone 'cutout' support to specctra, handle zones with attached to no nets, namelessly

This commit is contained in:
dickelbeck 2009-02-06 22:10:37 +00:00
parent 31aee8ef3e
commit 35e8a286e8
2 changed files with 3 additions and 3 deletions

View File

@ -1022,6 +1022,8 @@ public:
const char* quote = out->GetQuoteChar( name.c_str() );
out->Print( 0, " %s%s%s", quote, name.c_str(), quote );
}
else
out->Print( 0, " \"\"" ); // the zone with no name or net_code == 0
if( sequence_number != -1 )
out->Print( 0, " (sequence_number %d)", sequence_number );

View File

@ -1060,7 +1060,6 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
PATH* cutout = 0;
// handle the cutouts
// http://www.freerouting.net/fen/viewtopic.php?f=6&t=19
for( ++ndx; ndx<count; ++ndx )
{
if( item->m_Poly->corner[ndx-1].end_contour )
@ -1068,8 +1067,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
window = new WINDOW( plane );
plane->AddWindow( window );
cutout = new PATH( window, T_path );
// cutout = new PATH( window, T_polygon );
cutout = new PATH( window, T_polygon );
window->SetShape( cutout );
cutout->layer_id = layerIds[ kicadLayer2pcb[ item->GetLayer() ] ];