JAL-3444 translucent overview
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 10 Oct 2019 13:39:23 +0000 (15:39 +0200)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 10 Oct 2019 13:39:23 +0000 (15:39 +0200)
-  oops, that broke Java!

src/jalview/renderer/seqfeatures/FeatureColourFinder.java

index 836bc4a..531a187 100644 (file)
@@ -85,6 +85,7 @@ public class FeatureColourFinder
   public Color findFeatureColour(Color defaultColour, SequenceI seq,
           int column)
   {
+    new Color(defaultColour.getRGB());
     if (noFeaturesDisplayed())
     {
       return defaultColour;
@@ -98,10 +99,10 @@ public class FeatureColourFinder
      */
     if (featureRenderer.getTransparency() != 1f)
     {
+      g = goff;
       Color c = (defaultColour == null ? Color.white : defaultColour);
       if (Platform.isJS())
       {
-        g = goff;
         // Clear the HTML5 canvas color.
         // otherwise we get a smearing.
         // For whatever reason, this is necessary BH 2019.10.01.