X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequence.java;h=cb3ae7014277d492bd8d43dc40c85f72db3dfebb;hb=52fca080c3cb048defbe2d3a6f44fff760365b51;hp=6f1b4030d55f897ab5e474515e24b52a003200cd;hpb=cf8e8c6b06fc4272ef915b061ffb12ce555a9bb8;p=jalview.git diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 6f1b403..cb3ae70 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -25,6 +25,7 @@ import jalview.api.DBRefEntryI; import jalview.util.StringUtils; import java.util.ArrayList; +import java.util.Arrays; import java.util.Enumeration; import java.util.List; import java.util.Vector; @@ -216,8 +217,12 @@ public class Sequence extends ASequence implements SequenceI protected void initSeqFrom(SequenceI seq, AlignmentAnnotation[] alAnnotation) { - initSeqAndName(seq.getName(), seq.getSequence(), seq.getStart(), + { + char[] oseq = seq.getSequence(); + initSeqAndName(seq.getName(), Arrays.copyOf(oseq, oseq.length), + seq.getStart(), seq.getEnd()); + } description = seq.getDescription(); sourceDBRef = seq.getSourceDBRef() == null ? null : new DBRefEntry( seq.getSourceDBRef());