From e544ad47f580cc02849285265a5dcb814ef737d8 Mon Sep 17 00:00:00 2001 From: Charles Ofoegbu Date: Thu, 30 Oct 2014 12:27:40 +0000 Subject: [PATCH] JAL-353 updated patch for undo successive remove redundant sequence --- src/jalview/commands/EditCommand.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index b39d1dd..5c698a8 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -359,9 +359,10 @@ public class EditCommand implements CommandI List sequences; synchronized (sequences = command.al.getSequences()) { - // int index = command.al.findIndex(command.seqs[i]); - // sequences.add(index, command.seqs[i]); - sequences.add(command.alIndex[i] < 0 ? 0 : command.alIndex[i], command.seqs[i]); + if (!(command.alIndex[i] < 0)) + { + sequences.add(command.alIndex[i], command.seqs[i]); + } } } else -- 1.7.10.2