PANEL_SETUP_BOARD_STACKUP: save the m_HasDielectricConstrains BOARD_STACKUP member.

This member was not saved in the board stackup data.
From master branch.
Fixes #15690
https://gitlab.com/kicad/code/kicad/-/issues/15690
This commit is contained in:
jean-pierre charras 2023-09-19 17:47:29 +02:00
parent 83d2891cef
commit a74cffac39
2 changed files with 7 additions and 0 deletions

View File

@ -616,6 +616,7 @@ void BOARD_STACKUP::BuildDefaultStackupList( const BOARD_DESIGN_SETTINGS* aSetti
{ {
const BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor(); const BOARD_STACKUP& source_stackup = aSettings->GetStackupDescriptor();
m_EdgeConnectorConstraints = source_stackup.m_EdgeConnectorConstraints; m_EdgeConnectorConstraints = source_stackup.m_EdgeConnectorConstraints;
m_HasDielectricConstrains = source_stackup.m_HasDielectricConstrains;
m_CastellatedPads = source_stackup.m_CastellatedPads; m_CastellatedPads = source_stackup.m_CastellatedPads;
m_EdgePlating = source_stackup.m_EdgePlating; m_EdgePlating = source_stackup.m_EdgePlating;
m_FinishType = source_stackup.m_FinishType; m_FinishType = source_stackup.m_FinishType;

View File

@ -1271,6 +1271,12 @@ bool PANEL_SETUP_BOARD_STACKUP::TransferDataFromWindow()
modified = true; modified = true;
} }
if( brd_stackup.m_HasDielectricConstrains != m_impedanceControlled->GetValue() )
{
brd_stackup.m_HasDielectricConstrains = m_impedanceControlled->GetValue();
modified = true;
}
if( !m_brdSettings->m_HasStackup ) if( !m_brdSettings->m_HasStackup )
{ {
m_brdSettings->m_HasStackup = true; m_brdSettings->m_HasStackup = true;