JAL-2541 only need to shift features for ‘internal’ cut
[jalview.git] / src / jalview / commands / EditCommand.java
index 4c2f8e7..a3ad0c2 100644 (file)
@@ -558,6 +558,11 @@ public class EditCommand implements CommandI
           }
           command.oldds[i] = oldds;
 
+          // do we need to edit sequence features for new sequence ?
+          if (oldds != sequence.getDatasetSequence()
+                  || (cutIsInternal
+                          && sequence.getFeatures().hasFeatures()))
+          {
             if (cutPositions != null)
             {
               cutFeatures(command, sequence, cutPositions.getBegin(),