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
@@ -590,7 +590,7 @@ void SCH_COMMIT::Revert()
SCH_FIELD* field = static_cast<SCH_FIELD*>( item );
SCH_SYMBOL* symbol = static_cast<SCH_SYMBOL*>( item->GetParent() );
if( field->GetId() == REFERENCE_FIELD )
if( field->GetId() == FIELD_T::REFERENCE )
{
// Lazy eval of sheet list; this is expensive even when unsorted
if( sheets.empty() )