Sequence is char []
[jalview.git] / src / jalview / commands / EditCommand.java
index 72d82aa..be11d44 100644 (file)
@@ -207,7 +207,7 @@ public class EditCommand implements CommandI
       if(command.seqs[i].getLength()>command.position)\r
       {\r
         command.string[i] = command.seqs[i].getSequence(command.position,\r
-            command.position + command.number).toCharArray();\r
+            command.position + command.number);\r
 \r
         command.seqs[i].deleteChars(command.position,\r
                                     command.position + command.number);\r
@@ -235,7 +235,8 @@ public class EditCommand implements CommandI
         else\r
           command.al.addSequence(command.seqs[i]);\r
       }\r
-      tmp = new StringBuffer(command.seqs[i].getSequence());\r
+      tmp = new StringBuffer();\r
+      tmp.append(command.seqs[i].getSequence());\r
 \r
       if(command.string!=null && command.string[i]!=null)\r
       {\r