Comments.

(cherry picked from commit 8a3cbce8f8)
This commit is contained in:
Jeff Young 2024-02-16 13:27:11 +00:00 committed by Roberto Fernandez Bautista
parent 3938c35f17
commit a156b49e2c
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() )