Guard against UNDEFINED_LAYER in GetLayerSet
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16230
(cherry picked from commit 1ff3b5a437
)
This commit is contained in:
parent
ef8b6bf9e1
commit
60ddafa4ff
|
@ -506,6 +506,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