[UI] Avoid that copied model elements are added as children of the original selection
Problem:
When pasting a set of copied model elements, the copies will be added as children to one of the originally selected elements.
Note that the problem as occurs if multiple elements are copied/pasted. In this case, the copies are added to the “youngest” of the copied model elements
Steps to reproduce:
- Create Component Architecture
- Add Component “C”
- Within “Component Architecture” diagram editor, click onto “C” in order to select it
- Copy “C” to the clipboard (e.g., CTRL+C)
- Paste copy of “C” from the clipboard (e.g., CTRL+V)
- Observe that the copy of “C” has been added as a child element of C
Expected behavior:
The copy of “C” is added as a sister element of “C”, i.e. as a child of the component architecture
(from redmine: issue id 2347, created on 2015-06-03, closed on 2017-11-20)
- Relations:
- relates #2777 (closed)
- Uploads: