Attempt to fix GTK bug of just-added 3D model not getting selected.

Fixes https://gitlab.com/kicad/code/kicad/issues/4314
This commit is contained in:
Jeff Young 2020-05-06 21:19:06 +01:00
parent 52d1c93777
commit 902e0d0c42
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR( PCB_EDIT_FRAME* aP
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
m_modelsGrid->SetColAttr( 1, attr );
m_modelsGrid->SetWindowStyleFlag( m_modelsGrid->GetWindowStyle() & ~wxHSCROLL );
m_modelsGrid->SetSelectionMode( wxGrid::wxGridSelectRows );
m_OrientValidator.SetRange( -360.0, 360.0 );
m_OrientValueCtrl->SetValidator( m_OrientValidator );