From: amwaterhouse Date: Tue, 14 Dec 2004 11:18:12 +0000 (+0000) Subject: If groups doesnt contain group, addition is allowed X-Git-Tag: Release_2_0~841 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=873bf9da6abdeb24cd8624330b7b9977feb79bef;p=jalview.git If groups doesnt contain group, addition is allowed --- diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index abc7cf6..e329cc8 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -342,7 +342,8 @@ public class Alignment implements AlignmentI /** */ public void addGroup(SequenceGroup sg) { - groups.addElement(sg); + if(!groups.contains(sg)) + groups.addElement(sg); } /** */