git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff75356
)
If groups doesnt contain group, addition is allowed
author
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Dec 2004 11:18:12 +0000
(11:18 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 14 Dec 2004 11:18:12 +0000
(11:18 +0000)
src/jalview/datamodel/Alignment.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Alignment.java
b/src/jalview/datamodel/Alignment.java
index
abc7cf6
..
e329cc8
100755
(executable)
--- a/
src/jalview/datamodel/Alignment.java
+++ b/
src/jalview/datamodel/Alignment.java
@@
-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