7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 14:31:42 +00:00

EDA_VIEW_SWITCHER: very minor fix: select by default the first in list

This is also the lasted selected option, so no change by default
This commit is contained in:
jean-pierre charras 2024-11-30 19:24:24 +01:00
parent 4c632990ff
commit d6df4dc341

View File

@ -41,7 +41,7 @@ EDA_VIEW_SWITCHER::EDA_VIEW_SWITCHER( wxWindow* aParent, const wxArrayString& aI
m_ctrlKey( aCtrlKey )
{
m_listBox->InsertItems( aItems, 0 );
m_listBox->SetSelection( std::min( 1, (int) m_listBox->GetCount() - 1 ) );
m_listBox->SetSelection( std::min( 0, (int) m_listBox->GetCount() - 1 ) );
int width = 0;
int height = 0;