Update value & footprint from clipboard whether keeping annotation or not.
Fixes https://gitlab.com/kicad/code/kicad/issues/11116
(cherry picked from commit 400cff994d
)
This commit is contained in:
parent
310b4cdf75
commit
c90842dd08
|
@ -1534,19 +1534,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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue