From 235363bbdb3c3a48d8936ee263b977dc8a085e60 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 6 Dec 2005 09:15:56 +0000 Subject: [PATCH] Paste this makes new sequence --- src/jalview/gui/AlignFrame.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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); - - } } -- 1.7.10.2