Don't assume a board (KICAD-KKF).

This commit is contained in:
Jeff Young 2025-06-29 20:52:37 -06:00
parent 0922386262
commit d973757f81

View File

@ -207,7 +207,10 @@ bool BOARD_ITEM::IsSideSpecific() const
wxString BOARD_ITEM::layerMaskDescribe() const
{
const BOARD* board = GetBoard();
LSET layers = GetLayerSet() & board->GetEnabledLayers();
LSET layers = GetLayerSet();
if( board )
layers &= board->GetEnabledLayers();
LSET copperLayers = layers & LSET::AllCuMask();
LSET techLayers = layers & LSET::AllTechMask();