Fix missing part of cherry-pick.

This commit is contained in:
Jeff Young 2023-09-30 14:12:54 +01:00
parent 0d725fcc2c
commit 0e6ad13db8
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}