From b08766a2fa56f957b5e49f7599c242a068558238 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 2 Oct 2018 21:53:00 +0100 Subject: [PATCH] Scroll Footprint Viewer to selected item when opening. --- pcbnew/footprint_viewer_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index a9e405b2e1..726c9c0882 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -379,7 +379,10 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList() if( index == wxNOT_FOUND ) setCurFootprintName( wxEmptyString ); else + { m_footprintList->SetSelection( index, true ); + m_footprintList->EnsureVisible( index ); + } }