Fix specctra export crash, when a non copper zone was found on the board to export.
This commit is contained in:
parent
a91eabb805
commit
f43cf03789
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue