! * duplicates the aspect in the project hierarchy, the copy of the duplicated aspect is * added below the current aspect at the same level in the hierarchy. */
| 766 | * added below the current aspect at the same level in the hierarchy. |
| 767 | */ |
| 768 | void AbstractAspect::duplicate() { |
| 769 | copy(); |
| 770 | auto* parent = parentAspect(); |
| 771 | const int index = parent->indexOfChild<AbstractAspect>(this, ChildIndexFlag::IncludeHidden) + 1; |
| 772 | parent->paste(true, index); |
| 773 | } |
| 774 | |
| 775 | /*! |
| 776 | * in case the clipboard containts a LabPlot's specific copy&paste content, |
no test coverage detected