mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Bounds checking (KICAD-8V9)
This commit is contained in:
parent
6a11c7d87a
commit
4f6de4c5a1
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user