Board stackup manager: Fix missing initialization of dielectric type.

This commit is contained in:
jean-pierre charras 2019-11-12 08:59:02 +01:00
parent 2b201487e1
commit 6ad3e4a565
1 changed files with 9 additions and 1 deletions

View File

@ -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<wxChoice*>( ui_row_item.m_LayerTypeCtrl );
if( choice )
choice->SetSelection( item->GetTypeName() == KEY_CORE ? 0 : 1 );
}
if( item->IsMaterialEditable() )
{
wxTextCtrl* matName = dynamic_cast<wxTextCtrl*>( ui_row_item.m_MaterialCtrl );