Respect m_DrawSpecificUnit and m_DrawSpecificConvert when pasting.

Fixes: lp:1834719
* https://bugs.launchpad.net/kicad/+bug/1834719
This commit is contained in:
Jeff Young 2019-06-29 22:20:21 +01:00
parent 09b07cd387
commit d88bddad7e
1 changed files with 3 additions and 0 deletions

View File

@ -652,6 +652,9 @@ int LIB_EDIT_TOOL::Paste( const TOOL_EVENT& aEvent )
newItem->SetParent( part );
newItem->SetFlags( IS_NEW | IS_PASTED | SELECTED );
newItem->SetUnit( m_frame->m_DrawSpecificUnit ? m_frame->GetUnit() : 0 );
newItem->SetConvert( m_frame->m_DrawSpecificConvert ? m_frame->GetConvert() : 0 );
part->GetDrawItems().push_back( newItem );
getView()->Add( newItem );
}