JAL-2110 use shared alignment dataset when copying alignment for split
[jalview.git] / src / jalview / gui / AlignFrame.java
index b310ab9..15b1fb4 100644 (file)
@@ -4787,8 +4787,12 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
           }
           else
           {
+            /*
+             * copy peptide sequences, and add in any alternate products
+             * of their located coding xrefs
+             */
             copyAlignment = AlignmentUtils.makeCopyAlignment(
-                    sequenceSelection, xrefs.getSequencesArray());
+                    sequenceSelection, xrefs.getSequencesArray(), dataset);
           }
           copyAlignment.setGapCharacter(AlignFrame.this.viewport
                   .getGapCharacter());