git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1115 refactor base collection for Alignment from Vector to locally synchronized...
[jalview.git]
/
src
/
jalview
/
commands
/
EditCommand.java
diff --git
a/src/jalview/commands/EditCommand.java
b/src/jalview/commands/EditCommand.java
index
76ddbac
..
a8aa886
100644
(file)
--- a/
src/jalview/commands/EditCommand.java
+++ b/
src/jalview/commands/EditCommand.java
@@
-344,8
+344,10
@@
public class EditCommand implements CommandI
// read it to the alignment
if (command.alIndex[i] < command.al.getHeight())
{
// read it to the alignment
if (command.alIndex[i] < command.al.getHeight())
{
- command.al.getSequences().insertElementAt(command.seqs[i],
- command.alIndex[i]);
+ List<SequenceI> sequences;
+ synchronized (sequences=command.al.getSequences()) {
+ sequences.add(command.alIndex[i], command.seqs[i]);
+ }
}
else
{
}
else
{