Guard against UNDEFINED_LAYER in GetLayerSet
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16230
This commit is contained in:
parent
12d787ecc0
commit
1ff3b5a437
|
@ -672,6 +672,9 @@ LSET PCB_VIA::GetLayerSet() const
|
|||
{
|
||||
LSET layermask;
|
||||
|
||||
if( m_layer < PCBNEW_LAYER_ID_START )
|
||||
return layermask;
|
||||
|
||||
if( GetViaType() == VIATYPE::THROUGH )
|
||||
layermask = LSET::AllCuMask();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue