Get rid of assumptions about field order.

This commit is contained in:
Jeff Young
2025-02-24 11:08:29 +00:00
parent 9d901188cb
commit c5bb59468d
126 changed files with 2192 additions and 2914 deletions
+1 -1
View File
@@ -1186,7 +1186,7 @@ static void getFieldFunc( LIBEVAL::CONTEXT* aCtx, void* self )
{
FOOTPRINT* fp = static_cast<FOOTPRINT*>( item );
PCB_FIELD* field = fp->GetFieldByName( arg->AsString() );
PCB_FIELD* field = fp->GetField( arg->AsString() );
if( field )
return field->GetText();