Revert "JAL-2110 use shared alignment dataset when copying alignment for split frame"
[jalview.git] / src / jalview / gui / AlignFrame.java
index 54b1cb6..b310ab9 100644 (file)
@@ -4763,12 +4763,11 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
           AlignmentI copyAlignment = null;
           final SequenceI[] sequenceSelection = AlignFrame.this.viewport
                   .getSequenceSelection();
-          // List<AlignedCodonFrame> cf = xrefs.getCodonFrames();
           boolean copyAlignmentIsAligned = false;
           if (dna)
           {
             copyAlignment = AlignmentUtils.makeCdsAlignment(
-                    sequenceSelection, dataset);
+                    sequenceSelection, dataset, xrefsAlignment);
             if (copyAlignment.getHeight() == 0)
             {
               System.err.println("Failed to make CDS alignment");