Prechádzať zdrojové kódy

Fixes missing edges on rightclick copy for Groups

Andreas T. Meyer-Berg 6 rokov pred
rodič
commit
16e7915395

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