JAL-2599 fixed information annotation buttons not working
[jalview.git] / src / jalview / renderer / AnnotationRenderer.java
index 9aec02c..9b8588e 100644 (file)
@@ -364,7 +364,7 @@ public class AnnotationRenderer
     // properties/rendering attributes as a global 'alignment group' which holds
     // all vis settings for the alignment as a whole rather than a subset
     //
-    if (aa.label.startsWith("Information"))
+    if (aa.label.contains("_HMM"))
     {
       HiddenMarkovModel hmm = aa.sequenceRef.getHMM();
       return AAFrequency.extractHMMProfile(hmm, column,
@@ -478,8 +478,6 @@ hconsensus.get(column),
     boolean scaleColLabel = false;
     final AlignmentAnnotation consensusAnnot = av
             .getAlignmentConsensusAnnotation();
-    final AlignmentAnnotation informationAnnot = av
-            .getAlignmentInformationAnnotation();
     final AlignmentAnnotation structConsensusAnnot = av
             .getAlignmentStrucConsensusAnnotation();
     final AlignmentAnnotation complementConsensusAnnot = av
@@ -517,7 +515,7 @@ hconsensus.get(column),
           renderProfile = av_renderProfile;
           normaliseProfile = av_normaliseProfile;
         }
-        else if (row == informationAnnot)
+        else if (row.label.contains("_HMM"))
         {
           renderHistogram = av_renderInformationHistogram;
           renderProfile = av_renderHMMProfile;