From: Jim Procter Date: Tue, 24 Oct 2017 14:10:09 +0000 (+0100) Subject: JAL-2541 only need to shift features for ‘internal’ cut X-Git-Tag: Release_2_11_1_0~98^2~23^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3ed9d5436295b568be972ad3670867514493d993;p=jalview.git JAL-2541 only need to shift features for ‘internal’ cut --- diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index 4c2f8e7..a3ad0c2 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -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(),