From: Jim Procter Date: Sun, 4 Jun 2017 11:04:31 +0000 (+0100) Subject: JAL-2291 bug fix - BitSet.set is [start,end+1) X-Git-Tag: Release_2_10_2~3^2~35 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=062ece52545770057a16be3274b8d9c62f13d106;p=jalview.git JAL-2291 bug fix - BitSet.set is [start,end+1) --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index a8cff26..8176221 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -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;