eeschema: Properly set bold and italic properties in global text edit dialog

Fixes https://gitlab.com/kicad/code/kicad/issues/3963
This commit is contained in:
Ian McInerney 2020-03-01 00:22:59 +00:00
parent a28f58d14d
commit c31089d9f4
1 changed files with 2 additions and 2 deletions

View File

@ -230,13 +230,13 @@ void DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::processItem( const SCH_SHEET_PATH& aS
if( m_Italic->Get3StateValue() != wxCHK_UNDETERMINED )
{
eda_text->SetItalic( m_Visible->GetValue() );
eda_text->SetItalic( m_Italic->GetValue() );
m_hasChange = true;
}
if( m_Bold->Get3StateValue() != wxCHK_UNDETERMINED )
{
eda_text->SetBold( m_Visible->GetValue() );
eda_text->SetBold( m_Bold->GetValue() );
m_hasChange = true;
}
}