JAL-2556 Resolved group update on colouring and escape
authorkiramt <k.mourao@dundee.ac.uk>
Wed, 16 Aug 2017 10:21:55 +0000 (11:21 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Wed, 16 Aug 2017 10:21:55 +0000 (11:21 +0100)
src/jalview/gui/SeqCanvas.java

index abd6325..9d11976 100755 (executable)
@@ -385,7 +385,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
                     .getClipBounds().height)))
     {
       Graphics2D g2 = (Graphics2D) lcimg.getGraphics();
-      g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC));
 
       // overlay selection group on lcimg
       if (selectImage != null)
@@ -399,12 +398,6 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
       fastPaint = false;
       return;
     }
-
-    /*    lcimg = setupImage(lcimg);
-    if (lcimg == null)
-    {
-      return;
-    }*/
     
     if (av.antiAlias)
     {
@@ -426,6 +419,12 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
               ranges.getStartSeq(), ranges.getEndSeq(), 0);
     }
 
+    lcimg = new BufferedImage(img.getWidth(), img.getHeight(),
+            img.getType());
+    g2d = lcimg.createGraphics();
+    g2d.drawImage(img, 0, 0, null);
+    g2d.dispose();
+
     Graphics2D g2 = (Graphics2D) lcimg.getGraphics();
 
     // overlay selection group on lcimg