From ce329e13fb16eff7f206f7b0e1296f0594245041 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 27 Jun 2019 00:40:08 +0100 Subject: [PATCH] Set library selection when pre-loading the Footprint Viewer. Fixes: lp:1826932 * https://bugs.launchpad.net/kicad/+bug/1826932 (cherry picked from commit 8efe8d18356ba0b24d75ca13c05f45e07b0629bf) --- pcbnew/footprint_viewer_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pcbnew/footprint_viewer_frame.cpp b/pcbnew/footprint_viewer_frame.cpp index b84ec46893..eef6dcefba 100644 --- a/pcbnew/footprint_viewer_frame.cpp +++ b/pcbnew/footprint_viewer_frame.cpp @@ -618,6 +618,8 @@ bool FOOTPRINT_VIEWER_FRAME::ShowModal( wxString* aFootprint, wxWindow* aParent { setCurNickname( nickname ); setCurFootprintName( fpid.GetLibItemName() ); + + m_libList->SetStringSelection( nickname ); ReCreateFootprintList(); }