Eeschema: Correctly assign unit when copy/pasting

Fixes: lp:1738656
* https://bugs.launchpad.net/kicad/+bug/1738656
This commit is contained in:
Andrew Wygle 2017-12-17 13:14:49 -08:00 committed by Maciej Suminski
parent 3f24128f17
commit 9413793ef4
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ void LIB_EDIT_FRAME::pasteClipboard( const wxPoint& aOffset )
LIB_ITEM* item = (LIB_ITEM*) m_clipboard.GetItem( i )->Clone();
item->SetParent( part );
item->SetSelected();
item->SetUnit( GetUnit() );
part->AddDrawItem( item );
}