Pcbnew: Ensure items are rescued to an enabled layer

This commit is contained in:
John Beard
2024-08-15 14:43:09 +01:00
parent 2befd31fd6
commit f78329e2af
@@ -1152,6 +1152,8 @@ BOARD* PCB_IO_KICAD_SEXPR_PARSER::parseBOARD_unchecked()
THROW_IO_ERROR( wxT( "CANCEL" ) );
}
// Make sure the destination layer is enabled, even if not in the file
m_board->SetEnabledLayers( m_board->GetEnabledLayers().set( destLayer ) );
const auto visitItem = [&]( BOARD_ITEM& curr_item )
{