visibility setting
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 May 2007 08:10:03 +0000 (08:10 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 May 2007 08:10:03 +0000 (08:10 +0000)
src/jalview/gui/Jalview2XML.java

index aa1abb3..061dfca 100755 (executable)
@@ -1345,10 +1345,13 @@ public class Jalview2XML
         if (an[i].getId() != null
             && annotationIds.containsKey(an[i].getId()))
         {
-          al.addAnnotation(
+          jalview.datamodel.AlignmentAnnotation jda =
               (jalview.datamodel.AlignmentAnnotation) annotationIds.get(an[i].
-              getId())
-              );
+              getId());
+          if (an[i].hasVisible())
+            jda.visible = an[i].getVisible();
+
+          al.addAnnotation(jda);
 
           continue;
         }