Bounds checking (KICAD-8V9)
This commit is contained in:
@@ -66,7 +66,7 @@ wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint()
|
||||
wxString footprintName;
|
||||
int ii = GetFirstSelected();
|
||||
|
||||
if( ii >= 0 )
|
||||
if( ii >= 0 && ii < m_footprintList.size() )
|
||||
{
|
||||
wxString msg = m_footprintList[ii];
|
||||
msg.Trim( true );
|
||||
|
||||
Reference in New Issue
Block a user