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:
0703daa
)
JAL-674 patch to make Mapping.compareTransferredToRefPDBAnnot test
author
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 28 Jan 2015 11:13:47 +0000
(11:13 +0000)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 28 Jan 2015 11:13:47 +0000
(11:13 +0000)
pass
otherwise addAll throws an index not found exception with
inspos==-1
src/jalview/analysis/AlignSeq.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/AlignSeq.java
b/src/jalview/analysis/AlignSeq.java
index
ba7e520
..
2ef1c76
100755
(executable)
--- a/
src/jalview/analysis/AlignSeq.java
+++ b/
src/jalview/analysis/AlignSeq.java
@@
-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()));
}
}
}