Browse Source

Fix another footprint field fallout

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19729
pcb_db
Jon Evans 10 months ago
parent
commit
877e197fec
  1. 2
      pcbnew/footprint.cpp

2
pcbnew/footprint.cpp

@ -663,7 +663,7 @@ void FOOTPRINT::RemoveField( const wxString& aFieldName )
{
for( unsigned i = 0; i < m_fields.size(); ++i )
{
if( m_fields[i] && m_fields[ i ]->IsMandatory() )
if( !m_fields[i] || m_fields[ i ]->IsMandatory() )
continue;
if( aFieldName == m_fields[i]->GetName( false ) )

Loading…
Cancel
Save