Partial revert of 3804f6 to correct assert change

ToLayerID function converts to PCB_LAYER_ID and needs to check against
that enum instead of GAL_LAYER_ID.
This commit is contained in:
Seth Hillbrand 2018-05-30 09:12:50 -07:00
parent 36504b3071
commit eeb273faa0
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ LSEQ LSET::UIOrder() const
PCB_LAYER_ID ToLAYER_ID( int aLayer )
{
wxASSERT( unsigned( aLayer ) < GAL_LAYER_ID_END );
wxASSERT( unsigned( aLayer ) < PCB_LAYER_ID_COUNT );
return PCB_LAYER_ID( aLayer );
}