Fix specctra export crash, when a non copper zone was found on the board to export.

This commit is contained in:
jean-pierre charras 2014-06-16 14:04:55 +02:00
parent a91eabb805
commit f43cf03789
1 changed files with 4 additions and 0 deletions

View File

@ -1556,6 +1556,10 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
if( item->GetIsKeepout() )
continue;
// Currently, we export only copper layers
if( ! IsCopperLayer( item->GetLayer() ) )
continue;
COPPER_PLANE* plane = new COPPER_PLANE( pcb->structure );
pcb->structure->planes.push_back( plane );