Comments.

This commit is contained in:
Jeff Young 2024-02-16 13:27:11 +00:00
parent a9c4a17c38
commit 8a3cbce8f8
1 changed files with 2 additions and 0 deletions

View File

@ -244,6 +244,8 @@ void CLIPBOARD_IO::SaveSelection( const PCB_SELECTION& aSelected, bool isFootpri
footprint->SetPosition( copy->GetPosition() );
footprint->Add( copy );
// Convert any mandatory fields to user fields. The destination footprint
// will already have its own mandatory fields.
if( PCB_FIELD* field = dynamic_cast<PCB_FIELD*>( copy ) )
{
if( field->IsMandatoryField() )