X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fcommands%2FEditCommand.java;h=be11d44706d8adfc9555250d5d15e3874f6423e6;hb=5951e3b0b9faea1c8b54914cb64ff3a08ba27cb6;hp=72d82aa070cd60e1b6a09fd0cebdcee3038098d6;hpb=ac86da576d0e56841b3d2c765b880c6e5765b855;p=jalview.git diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index 72d82aa..be11d44 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -207,7 +207,7 @@ public class EditCommand implements CommandI if(command.seqs[i].getLength()>command.position) { command.string[i] = command.seqs[i].getSequence(command.position, - command.position + command.number).toCharArray(); + command.position + command.number); command.seqs[i].deleteChars(command.position, command.position + command.number); @@ -235,7 +235,8 @@ public class EditCommand implements CommandI else command.al.addSequence(command.seqs[i]); } - tmp = new StringBuffer(command.seqs[i].getSequence()); + tmp = new StringBuffer(); + tmp.append(command.seqs[i].getSequence()); if(command.string!=null && command.string[i]!=null) {