Bounds checking (KICAD-8V9)

This commit is contained in:
Jeff Young
2025-07-04 16:40:17 -06:00
parent bacc82c589
commit 1e0a08034f
+1 -1
View File
@@ -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 );