pcbnew: Fix missing board settings class

Fixes: lp:1796541
* https://bugs.launchpad.net/kicad/+bug/1796541
This commit is contained in:
Seth Hillbrand 2018-10-07 08:31:16 -07:00
parent 9505df5997
commit af8715da80
1 changed files with 7 additions and 5 deletions

View File

@ -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;
}