remove all representative seqs on delete groups
authoramwaterhouse <Andrew Waterhouse>
Fri, 18 Aug 2006 13:57:14 +0000 (13:57 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 18 Aug 2006 13:57:14 +0000 (13:57 +0000)
src/jalview/datamodel/Alignment.java

index c839271..86c140f 100755 (executable)
@@ -394,7 +394,8 @@ public class Alignment implements AlignmentI
 
         while (i < sequences.size())
         {
-            SequenceI s = getSequenceAt(i);
+            Sequence s = (Sequence)getSequenceAt(i);
+            s.hiddenSequences = null;
             s.setColor(java.awt.Color.white);
             i++;
         }
@@ -405,6 +406,9 @@ public class Alignment implements AlignmentI
     {
         if (groups.contains(g))
         {
+          //remove any hidden representatives
+        //  for(int i=0; i<g.getsiz
+         //   g.getSequences()
             groups.removeElement(g);
         }
     }