From 3f3c83d8aa5b9fda8dafaf4c43373f1c91c4524e Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 14 Sep 2015 09:34:05 +0100 Subject: [PATCH] JAL-1684 align added alignment to match original in split frame --- src/jalview/appletgui/CutAndPasteTransfer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/appletgui/CutAndPasteTransfer.java b/src/jalview/appletgui/CutAndPasteTransfer.java index 5617c64..4590c54 100644 --- a/src/jalview/appletgui/CutAndPasteTransfer.java +++ b/src/jalview/appletgui/CutAndPasteTransfer.java @@ -304,7 +304,7 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, } AlignmentI protein = thisAlignment.isNucleotide() ? al : thisAlignment; AlignmentI dna = thisAlignment.isNucleotide() ? thisAlignment : al; - boolean mapped = AlignmentUtils.mapProteinToCdna(protein, dna); + boolean mapped = AlignmentUtils.mapProteinAlignmentToCdna(protein, dna); if (!mapped) { return false; @@ -332,6 +332,11 @@ public class CutAndPasteTransfer extends Panel implements ActionListener, } /* + * 'align' the added alignment to match the current one + */ + al.alignAs(thisAlignment); + + /* * Open SplitFrame with DNA above and protein below, including the alignment * from textbox and a copy of the original. */ -- 1.7.10.2