Put pasted part on canvas.

Fixes https://gitlab.com/kicad/code/kicad/issues/6793
This commit is contained in:
Jeff Young 2020-12-21 17:21:01 +00:00
parent 9bf952a695
commit 50e1e07f4b
1 changed files with 3 additions and 0 deletions

View File

@ -887,6 +887,9 @@ void SYMBOL_EDIT_FRAME::DuplicatePart( bool aFromClipboard )
ensureUniqueName( newPart, lib ); ensureUniqueName( newPart, lib );
m_libMgr->UpdatePart( newPart, lib ); m_libMgr->UpdatePart( newPart, lib );
LoadOneLibraryPartAux( newPart, lib, GetUnit(), GetConvert() );
SyncLibraries( false ); SyncLibraries( false );
m_treePane->GetLibTree()->SelectLibId( LIB_ID( lib, newPart->GetName() ) ); m_treePane->GetLibTree()->SelectLibId( LIB_ID( lib, newPart->GetName() ) );