copy only the sequence associated alignment annotation displayed in the current view
authorjprocter <Jim Procter>
Wed, 2 May 2007 12:23:17 +0000 (12:23 +0000)
committerjprocter <Jim Procter>
Wed, 2 May 2007 12:23:17 +0000 (12:23 +0000)
src/jalview/gui/AlignViewport.java

index 88a6e37..b68008a 100755 (executable)
@@ -1479,9 +1479,10 @@ public class AlignViewport
       if (selectionGroup == null)
     {
         sequences = alignment.getSequencesArray();
+        AlignmentAnnotation[] annots = alignment.getAlignmentAnnotation(); 
         for (int i=0; i<sequences.length; i++)
         {
-          sequences[i] = new Sequence(sequences[i]); // construct new sequence
+          sequences[i] = new Sequence(sequences[i], annots); // construct new sequence with subset of visible annotation
         }
     }
       else