From: Jim Procter Date: Tue, 24 Oct 2017 14:11:16 +0000 (+0100) Subject: JAL-2541 remove second unnecessary if X-Git-Tag: Release_2_11_1_0~98^2~23^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=800602422526876c3a0f44bb0fefad17226728c0;p=jalview.git JAL-2541 remove second unnecessary if --- diff --git a/src/jalview/commands/EditCommand.java b/src/jalview/commands/EditCommand.java index a3ad0c2..50822ec 100644 --- a/src/jalview/commands/EditCommand.java +++ b/src/jalview/commands/EditCommand.java @@ -1462,6 +1462,9 @@ public class EditCommand implements CommandI protected static void cutFeatures(Edit command, SequenceI seq, int fromPosition, int toPosition, boolean cutIsInternal) { + /* if the cut is at start or end of sequence + * then we don't modify the seuqence feature store + */ if (!cutIsInternal) { return; @@ -1572,12 +1575,9 @@ public class EditCommand implements CommandI /* * and left shift any features lying to the right of the cut region - * (but not if the cut is at start or end of sequence) */ - if (cutIsInternal) - { - featureStore.shiftFeatures(cutEndPos + 1, -cutWidth); - } + + featureStore.shiftFeatures(cutEndPos + 1, -cutWidth); } /*