DIALOG_LIB_SYMBOL_PROPERTIES: fix incorrect state of two wxCheckboxes.

When opening the dialog, m_excludeFromBomCheckBox and  m_excludeFromBoardCheckBox
states were the opposite of the actual symbol property.
Fixes #15269
https://gitlab.com/kicad/code/kicad/-/issues/15269
This commit is contained in:
jean-pierre charras 2023-07-30 08:42:33 +02:00
parent abcd753bd3
commit 1548b14f84
1 changed files with 2 additions and 2 deletions

View File

@ -185,8 +185,8 @@ bool DIALOG_LIB_SYMBOL_PROPERTIES::TransferDataToWindow()
LIB_FIELD* simEnableField = m_libEntry->FindField( SIM_ENABLE_FIELD ); LIB_FIELD* simEnableField = m_libEntry->FindField( SIM_ENABLE_FIELD );
m_excludeFromSim->SetValue( simEnableField && simEnableField->GetText() == wxT( "0" ) ); m_excludeFromSim->SetValue( simEnableField && simEnableField->GetText() == wxT( "0" ) );
m_excludeFromBomCheckBox->SetValue( !m_libEntry->GetExcludedFromBOM() ); m_excludeFromBomCheckBox->SetValue( m_libEntry->GetExcludedFromBOM() );
m_excludeFromBoardCheckBox->SetValue( !m_libEntry->GetExcludedFromBoard() ); m_excludeFromBoardCheckBox->SetValue( m_libEntry->GetExcludedFromBoard() );
m_ShowPinNumButt->SetValue( m_libEntry->ShowPinNumbers() ); m_ShowPinNumButt->SetValue( m_libEntry->ShowPinNumbers() );
m_ShowPinNameButt->SetValue( m_libEntry->ShowPinNames() ); m_ShowPinNameButt->SetValue( m_libEntry->ShowPinNames() );