libedit: When pasting keep original multi-unit
Copy/Paste should keep the original items' designation for all units and conversion type. If it was specified in the original copy, we should keep the same specification when pasting (but update for the current frame)
This commit is contained in:
parent
a6b94b37ec
commit
42f5c944b3
|
@ -684,8 +684,8 @@ 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 );
|
||||
newItem->SetUnit( newItem->GetUnit() ? m_frame->GetUnit() : 0 );
|
||||
newItem->SetConvert( newItem->GetConvert() ? m_frame->GetConvert() : 0 );
|
||||
|
||||
part->GetDrawItems().push_back( newItem );
|
||||
getView()->Add( newItem );
|
||||
|
|
Loading…
Reference in New Issue