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:
parent
36504b3071
commit
eeb273faa0
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue