Make sure line style comboboxes get a default entry.
Fixes https://gitlab.com/kicad/code/kicad/issues/11083
This commit is contained in:
parent
6f555b6258
commit
7ab4d67e94
|
@ -52,6 +52,7 @@ DIALOG_LIB_TEXTBOX_PROPERTIES::DIALOG_LIB_TEXTBOX_PROPERTIES( SYMBOL_EDIT_FRAME*
|
||||||
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
||||||
|
|
||||||
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
||||||
|
|
||||||
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
|
|
||||||
m_textCtrl->SetEOLMode( wxSTC_EOL_LF );
|
m_textCtrl->SetEOLMode( wxSTC_EOL_LF );
|
||||||
|
|
|
@ -59,6 +59,7 @@ DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES( SCH_EDIT_FRAME* aParent, SCH_ITE
|
||||||
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
||||||
|
|
||||||
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
||||||
|
|
||||||
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
m_fillColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -130,6 +130,8 @@ DIALOG_GRAPHIC_ITEM_PROPERTIES::DIALOG_GRAPHIC_ITEM_PROPERTIES( PCB_BASE_EDIT_FR
|
||||||
for( const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry : lineTypeNames )
|
for( const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry : lineTypeNames )
|
||||||
m_lineStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
m_lineStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
||||||
|
|
||||||
|
m_lineStyleCombo->Append( DEFAULT_STYLE );
|
||||||
|
|
||||||
m_LayerSelectionCtrl->SetLayersHotkeys( false );
|
m_LayerSelectionCtrl->SetLayersHotkeys( false );
|
||||||
m_LayerSelectionCtrl->SetBoardFrame( m_parent );
|
m_LayerSelectionCtrl->SetBoardFrame( m_parent );
|
||||||
m_LayerSelectionCtrl->Resync();
|
m_LayerSelectionCtrl->Resync();
|
||||||
|
|
|
@ -133,6 +133,8 @@ DIALOG_TEXTBOX_PROPERTIES::DIALOG_TEXTBOX_PROPERTIES( PCB_BASE_EDIT_FRAME* aPare
|
||||||
for( const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry : lineTypeNames )
|
for( const std::pair<const PLOT_DASH_TYPE, lineTypeStruct>& typeEntry : lineTypeNames )
|
||||||
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
m_borderStyleCombo->Append( typeEntry.second.name, KiBitmap( typeEntry.second.bitmap ) );
|
||||||
|
|
||||||
|
m_borderStyleCombo->Append( DEFAULT_STYLE );
|
||||||
|
|
||||||
SetupStandardButtons();
|
SetupStandardButtons();
|
||||||
|
|
||||||
// wxTextCtrls fail to generate wxEVT_CHAR events when the wxTE_MULTILINE flag is set,
|
// wxTextCtrls fail to generate wxEVT_CHAR events when the wxTE_MULTILINE flag is set,
|
||||||
|
|
Loading…
Reference in New Issue