git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2541 remove second unnecessary if
[jalview.git]
/
src
/
jalview
/
commands
/
EditCommand.java
diff --git
a/src/jalview/commands/EditCommand.java
b/src/jalview/commands/EditCommand.java
index
a3ad0c2
..
50822ec
100644
(file)
--- 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)
{
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;
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
/*
* 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);
}
/*
}
/*