@@ -327,6 +327,8 @@ public class MyCanvas extends AbstractCanvas implements MouseListener,
});
itemCopy.addActionListener(actionEvent -> {
+ if(tempCps instanceof CpsUpperNode)
+ controller.getObjectsInDepth();
controller.copy(null);
itemPaste.setEnabled(true);
repaint();
@@ -296,6 +296,8 @@ public class UpperNodeCanvas extends AbstractCanvas implements MouseListener, Mo
controller.copy(upperNode);