Fix missing part of cherry-pick.
This commit is contained in:
parent
0d725fcc2c
commit
0e6ad13db8
|
@ -314,7 +314,7 @@ std::vector<PCB_LAYER_ID> ALTIUM_PCB::GetKicadLayersToIterate( ALTIUM_LAYER aAlt
|
|||
|
||||
for( PCB_LAYER_ID layer : LSET::AllCuMask().Seq() )
|
||||
{
|
||||
if( m_board->IsLayerEnabled( layer ) )
|
||||
if( !m_board || m_board->IsLayerEnabled( layer ) )
|
||||
layers.emplace_back( layer );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue