Update value & footprint from clipboard whether keeping annotation or not.

Fixes https://gitlab.com/kicad/code/kicad/issues/11116
This commit is contained in:
Jeff Young 2022-03-17 18:02:58 +00:00
parent deb7a0beff
commit 400cff994d
1 changed files with 4 additions and 7 deletions

View File

@ -1490,19 +1490,16 @@ void SCH_EDITOR_CONTROL::updatePastedSymbol( SCH_SYMBOL* aSymbol, SCH_SCREEN* aP
}
if( aForceKeepAnnotations && !reference.IsEmpty() )
{
aSymbol->SetRef( &aPastePath, reference );
aSymbol->SetValue( &aPastePath, value );
aSymbol->SetFootprint( &aPastePath, footprint );
}
else
{
aSymbol->ClearAnnotation( &aPastePath );
}
// We might clear annotations but always leave the original unit number from the paste
// We might clear annotations but always leave the original unit number, value and footprint
// from the paste
aSymbol->SetUnitSelection( &aPastePath, unit );
aSymbol->SetUnit( unit );
aSymbol->SetValue( &aPastePath, value );
aSymbol->SetFootprint( &aPastePath, footprint );
}