Don't open-code copying of SCH_FIELDs.

(It won't get updated when new stuff is added.)
This commit is contained in:
Jeff Young
2025-01-05 20:48:48 +00:00
parent 612b0a09dc
commit 3da2c8f9ef
+1 -5
View File
@@ -1743,11 +1743,7 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
VECTOR2I pos = field.GetPosition() - aSymbol->GetPosition();
SCH_FIELD libField( symbol.get(), field.GetId() );
if( i >= MANDATORY_FIELDS && !field.GetName( false ).IsEmpty() )
libField.SetName( field.GetName( false ) );
libField.SetText( field.GetText() );
libField.SetAttributes( field );
libField = field;
// The inverse transform is mirroring before, rotate after
switch( mirror )