Merge branch 'bug/JAL-2541cutWithFeatures' into features/JAL-2446NCList
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 24 May 2017 14:21:43 +0000 (15:21 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 24 May 2017 14:21:43 +0000 (15:21 +0100)
1  2 
src/jalview/commands/EditCommand.java
src/jalview/datamodel/Sequence.java
test/jalview/datamodel/SequenceTest.java

@@@ -555,6 -555,6 +555,7 @@@ public class EditCommand implements Com
                command.oldds = new SequenceI[command.seqs.length];
              }
              command.oldds[i] = oldds;
++            // FIXME JAL-2541 JAL-2526 get correct positions if on a gap
              adjustFeatures(
                      command,
                      i,
      }
    }
  
--  final static void adjustFeatures(Edit command, int index, int i, int j,
--          boolean insert)
++  final static void adjustFeatures(Edit command, int index, final int i,
++          final int j, boolean insert)
    {
      SequenceI seq = command.seqs[index];
      SequenceI sequence = seq.getDatasetSequence();
Simple merge
@@@ -40,6 -41,6 +41,8 @@@ import java.util.Vector
  
  import junit.extensions.PA;
  
++import junit.extensions.PA;
++
  import org.testng.Assert;
  import org.testng.annotations.BeforeClass;
  import org.testng.annotations.BeforeMethod;