JAL-2291 bug fix - BitSet.set is [start,end+1)
authorJim Procter <jprocter@issues.jalview.org>
Sun, 4 Jun 2017 11:04:31 +0000 (12:04 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 4 Jun 2017 11:04:31 +0000 (12:04 +0100)
src/jalview/datamodel/Sequence.java

index a8cff26..8176221 100755 (executable)
@@ -839,7 +839,7 @@ public class Sequence extends ASequence implements SequenceI
       {
         if (lastj != -1)
         {
-          map.set(lastj, j - 1);
+          map.set(lastj, j);
           lastj = -1;
         }
       }
@@ -847,7 +847,7 @@ public class Sequence extends ASequence implements SequenceI
     }
     if (lastj != -1)
     {
-      map.set(lastj, j - 1);
+      map.set(lastj, j);
       lastj = -1;
     }
     return map;