If groups doesnt contain group, addition is allowed
authoramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 11:18:12 +0000 (11:18 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 11:18:12 +0000 (11:18 +0000)
src/jalview/datamodel/Alignment.java

index abc7cf6..e329cc8 100755 (executable)
@@ -342,7 +342,8 @@ public class Alignment implements AlignmentI
 \r
   /**    */\r
   public void addGroup(SequenceGroup sg) {\r
-    groups.addElement(sg);\r
+    if(!groups.contains(sg))\r
+      groups.addElement(sg);\r
   }\r
 \r
   /**    */\r