pcbnew: Fix missing board settings class
Fixes: lp:1796541 * https://bugs.launchpad.net/kicad/+bug/1796541
This commit is contained in:
parent
9505df5997
commit
af8715da80
|
@ -896,13 +896,15 @@ void BOARD_DESIGN_SETTINGS::SetEnabledLayers( LSET aMask )
|
|||
int BOARD_DESIGN_SETTINGS::GetLayerClass( PCB_LAYER_ID aLayer ) const
|
||||
{
|
||||
if( aLayer == F_SilkS || aLayer == B_SilkS )
|
||||
return 0;
|
||||
return LAYER_CLASS_SILK;
|
||||
else if( IsCopperLayer( aLayer ) )
|
||||
return 1;
|
||||
else if( aLayer == Edge_Cuts || aLayer == F_CrtYd || aLayer == B_CrtYd )
|
||||
return 2;
|
||||
return LAYER_CLASS_COPPER;
|
||||
else if( aLayer == Edge_Cuts )
|
||||
return LAYER_CLASS_EDGES;
|
||||
else if( aLayer == F_CrtYd || aLayer == B_CrtYd )
|
||||
return LAYER_CLASS_COURTYARD;
|
||||
else
|
||||
return 3;
|
||||
return LAYER_CLASS_OTHERS;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue