JAL-674 patch to make Mapping.compareTransferredToRefPDBAnnot test
[jalview.git] / src / jalview / analysis / AlignSeq.java
index ba7e520..2ef1c76 100755 (executable)
@@ -1155,7 +1155,8 @@ public class AlignSeq
           }
           if (sq.getAnnotation() != null && sq.getAnnotation().length > 0)
           {
-            annotations.addAll(inspos, Arrays.asList(sq.getAnnotation()));
+            annotations.addAll(inspos == -1 ? annotations.size() : inspos,
+                    Arrays.asList(sq.getAnnotation()));
           }
         }
       }