From 031202a83735de28dc8b100755d3653fa442003f Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 27 Feb 2014 09:05:28 +0100 Subject: [PATCH] Fix wx28 compatibility issue. --- eeschema/dialogs/dialog_choose_component.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp index 93c40e2505..7356137b32 100644 --- a/eeschema/dialogs/dialog_choose_component.cpp +++ b/eeschema/dialogs/dialog_choose_component.cpp @@ -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