JAL-1081 JAL-841 JAL-1053 JAL-1081 use same selection criteria for secondary structur...
[jalview.git] / src / jalview / schemes / RNAHelicesColour.java
index 76592ba..5518f8f 100644 (file)
@@ -99,7 +99,8 @@ public class RNAHelicesColour extends ResidueColourScheme
     {
 
       // is this a sensible way of determining type of annotation?
-      if (annotations[i].getRNAStruc() != null)
+      if (annotations[i].visible && annotations[i].isRNA()
+              && annotations[i].isValidStruc())
       {
         annotation = annotations[i];
         break;