Only test existing layers.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19694
(cherry picked from commit 062a03c3aa)
This commit is contained in:
@@ -1366,7 +1366,7 @@ void PCB_IO_KICAD_SEXPR::formatLayers( LSET aLayerMask, int aNestLevel ) const
|
||||
|
||||
output += "(layers";
|
||||
|
||||
static const LSET cu_all( LSET::AllCuMask() );
|
||||
static const LSET cu_all( LSET::AllCuMask( m_board->GetCopperLayerCount() ) );
|
||||
static const LSET fr_bk( 2, B_Cu, F_Cu );
|
||||
static const LSET adhes( 2, B_Adhes, F_Adhes );
|
||||
static const LSET paste( 2, B_Paste, F_Paste );
|
||||
|
||||
Reference in New Issue
Block a user