diff --git a/pcbnew/board_stackup_manager/panel_board_stackup.cpp b/pcbnew/board_stackup_manager/panel_board_stackup.cpp index 079690eb4b..38d6985fd4 100644 --- a/pcbnew/board_stackup_manager/panel_board_stackup.cpp +++ b/pcbnew/board_stackup_manager/panel_board_stackup.cpp @@ -341,7 +341,7 @@ void PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard( bool aFullSync ) if( brd_item->GetType() != BS_ITEM_TYPE_DIELECTRIC ) continue; - if( item->GetDielectricLayerId() == brd_item->GetDielectricLayerId() ) + if( item->GetDielectricLayerId() == brd_item->GetDielectricLayerId() ) brd_stack_item = brd_item; } else if( item->GetBrdLayerId() == brd_item->GetBrdLayerId() ) @@ -357,6 +357,14 @@ void PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard( bool aFullSync ) { *item = *brd_stack_item; + if( item->GetType() == BS_ITEM_TYPE_DIELECTRIC ) + { + wxChoice* choice = dynamic_cast( ui_row_item.m_LayerTypeCtrl ); + + if( choice ) + choice->SetSelection( item->GetTypeName() == KEY_CORE ? 0 : 1 ); + } + if( item->IsMaterialEditable() ) { wxTextCtrl* matName = dynamic_cast( ui_row_item.m_MaterialCtrl );