From: amwaterhouse Date: Tue, 6 Dec 2005 09:15:56 +0000 (+0000) Subject: Paste this makes new sequence X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=235363bbdb3c3a48d8936ee263b977dc8a085e60;p=jalview.git Paste this makes new sequence --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 86d7cb6..210c44f 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -828,7 +828,10 @@ public class AlignFrame //!newAlignment for (int i = 0; i < sequences.length; i++) { - viewport.alignment.addSequence(sequences[i]); + Sequence newseq = new Sequence(sequences[i].getName(), + sequences[i].getSequence(), sequences[i].getStart(), + sequences[i].getEnd()); + viewport.alignment.addSequence(newseq); if(sequences[i].getDatasetSequence()==null) { //////////////////////////// @@ -838,10 +841,8 @@ public class AlignFrame AlignSeq.extractGaps("-. ", sequences[i].getSequence()), sequences[i].getStart(), sequences[i].getEnd()); - sequences[i].setDatasetSequence(ds); + newseq.setDatasetSequence(ds); viewport.alignment.getDataset().addSequence(ds); - - } }