Scroll Footprint Viewer to selected item when opening.
This commit is contained in:
parent
6c693f80a7
commit
b08766a2fa
|
@ -379,7 +379,10 @@ void FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList()
|
||||||
if( index == wxNOT_FOUND )
|
if( index == wxNOT_FOUND )
|
||||||
setCurFootprintName( wxEmptyString );
|
setCurFootprintName( wxEmptyString );
|
||||||
else
|
else
|
||||||
|
{
|
||||||
m_footprintList->SetSelection( index, true );
|
m_footprintList->SetSelection( index, true );
|
||||||
|
m_footprintList->EnsureVisible( index );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue