JAL-674 patch for duplicate row bug
[jalview.git] / src / jalview / analysis / AlignSeq.java
index e7fed8d..d05aa96 100755 (executable)
@@ -1113,7 +1113,7 @@ public class AlignSeq
               if (removeOldAnnots) {
                 annotations.remove(ap);
               } else {
-                AlignmentAnnotation alan = annotations.get(ap);
+                AlignmentAnnotation alan = annotations.remove(ap);
                 alan.liftOver(sq, sp2sq);
                 alan.setSequenceRef(sq);
                 sq.addAlignmentAnnotation(alan);