Graphics: avoid freeze after copying plot to clipboard
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / editor / SystemClipboard.java
index 3d8d939..47231e7 100644 (file)
@@ -56,7 +56,6 @@ public class SystemClipboard {
         BufferedImage image = bufferFromUID(uid);
         ImageTransfer img = new ImageTransfer((Image)image);
         Toolkit.getDefaultToolkit().getSystemClipboard().setContents(img, null);
-        System.out.println("Image copied to clipboard!");
     }
 
     /**
@@ -113,7 +112,7 @@ public class SystemClipboard {
         }
         if (joglCanvas != null) {
             BufferedImage image = joglCanvas.getImage();
-            joglCanvas.destroy();
+            //joglCanvas.destroy();
             return image;
         }
         return null;