JAL-1869 make per-sequence RNA helix colours each time Colour By Annotation is opened
authorJim Procter <jprocter@issues.jalview.org>
Thu, 9 Jul 2015 16:21:22 +0000 (17:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sat, 5 Sep 2015 16:00:38 +0000 (17:00 +0100)
src/jalview/schemes/AnnotationColourGradient.java
src/jalview/schemes/ColourSchemeProperty.java

index 121d6ca..60a20fa 100755 (executable)
@@ -193,6 +193,7 @@ public class AnnotationColourGradient extends FollowerColourScheme
       }
       if (rna)
       {
+        ColourSchemeProperty.resetRnaHelicesShading();
         ColourSchemeProperty.initRnaHelicesShading(1 + (int) aamax);
       }
     }
index 5715ada..0d9c39d 100755 (executable)
@@ -626,4 +626,12 @@ public class ColourSchemeProperty
     }
   }
 
+  /**
+   * delete the existing cached RNA helces colours
+   */
+  public static void resetRnaHelicesShading()
+  {
+    rnaHelices = null;
+  }
+
 }