mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't assume a board (KICAD-KKF).
This commit is contained in:
parent
0922386262
commit
d973757f81
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user