Fix wx28 compatibility issue.

This commit is contained in:
jean-pierre charras 2014-02-27 09:05:28 +01:00
parent fb6099abd9
commit 031202a837
1 changed files with 3 additions and 0 deletions

View File

@ -47,7 +47,10 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( wxWindow* aParent, const wxStr
m_search_container->SetTree( m_libraryComponentTree );
m_searchBox->SetFocus();
m_componentDetails->SetEditable( false );
#if wxCHECK_VERSION( 3, 0, 0 )
m_libraryComponentTree->ScrollTo( m_libraryComponentTree->GetFocusedItem() );
#endif
// The tree showing libs and component uses a fixed font,
// because we want controle the position of some info when drawing the