浏览代码

Fixes missing edges on rightclick copy for Groups

Andreas T. Meyer-Berg 6 年之前
父节点
当前提交
16e7915395
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      src/ui/view/MyCanvas.java
  2. 2 0
      src/ui/view/UpperNodeCanvas.java

+ 2 - 0
src/ui/view/MyCanvas.java

@@ -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();

+ 2 - 0
src/ui/view/UpperNodeCanvas.java

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