Scroll library into view after open from Kicad app.

Fixes: lp:1793621
* https://bugs.launchpad.net/kicad/+bug/1793621
This commit is contained in:
Jeff Young 2018-09-24 15:45:51 +01:00
parent 533b26e8a1
commit c95c6c8db7
1 changed files with 5 additions and 1 deletions

View File

@ -1714,7 +1714,11 @@ void LIB_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
SetCurLib( libNickname );
if( m_treePane )
m_treePane->GetLibTree()->ExpandLibId( LIB_ID( libNickname, wxEmptyString ) );
{
LIB_ID id( libNickname, wxEmptyString );
m_treePane->GetLibTree()->ExpandLibId( id );
m_treePane->GetLibTree()->CenterLibId( id );
}
}
break;