Reduce reliance on MANDATORY_FIELDS and their implied order.

This commit is contained in:
Jeff Young
2025-01-22 17:51:57 +00:00
parent be38fa5cac
commit e19bce2f93
40 changed files with 312 additions and 284 deletions
+2 -2
View File
@@ -527,8 +527,8 @@ void BACK_ANNOTATE::applyChangelist()
if( !m_dryRun )
{
SCH_FIELD newField( symbol->GetPosition(), symbol->GetFieldCount(), symbol,
fpFieldName );
SCH_FIELD newField( symbol->GetPosition(), symbol->GetNextFieldId(),
symbol, fpFieldName );
newField.SetText( fpFieldValue );
newField.SetVisible( false ); // Don't clutter up the schematic
symbol->AddField( newField );