소스 검색

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 -> {
 		itemCopy.addActionListener(actionEvent -> {
+			if(tempCps instanceof CpsUpperNode)
+				controller.getObjectsInDepth();
 			controller.copy(null);
 			controller.copy(null);
 			itemPaste.setEnabled(true);
 			itemPaste.setEnabled(true);
 			repaint();
 			repaint();

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

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