update author list in license for (JAL-826)
[jalview.git] / src / jalview / gui / AlignViewport.java
index 0a9cad4..f5bc6e4 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6)
- * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
+ * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
  * 
  * This file is part of Jalview.
  * 
@@ -413,7 +413,7 @@ public class AlignViewport implements SelectionSource, VamsasSource
       consensus.hasText = true;
       consensus.autoCalculated = true;
 
-      if (alignment.isNucleotide())
+      if (alignment.isNucleotide() && alignment.hasRNAStructure())
       {
         strucConsensus = new AlignmentAnnotation("StrucConsensus", "PID",
                 new Annotation[1], 0f, 100f, AlignmentAnnotation.BAR_GRAPH);
@@ -425,7 +425,7 @@ public class AlignViewport implements SelectionSource, VamsasSource
       {
         alignment.addAnnotation(consensus);
         // TODO: Make own if for structure
-        if (alignment.isNucleotide())
+        if (alignment.isNucleotide() && alignment.hasRNAStructure())
         {
           alignment.addAnnotation(strucConsensus);
         }