Graphics: avoid freeze after copying plot to clipboard 31/14331/1
Calixte DENIZET [Fri, 4 Apr 2014 07:35:57 +0000 (09:35 +0200)]
Change-Id: I8af14752c9630998b2319c93e3ee736b1bcb8cee

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;