ensure annotation isn't added twice - note - this could cause efficiency problems
[jalview.git] / src / jalview / datamodel / Sequence.java
index cdb1921..293528d 100755 (executable)
@@ -901,8 +901,10 @@ public class Sequence implements SequenceI
     {
       this.annotation = new Vector();
     }
-
-    this.annotation.addElement(annotation);
+    if (!this.annotation.contains(annotation))
+    {
+      this.annotation.addElement(annotation);
+    }
     annotation.setSequenceRef(this);
   }