From 062ece52545770057a16be3274b8d9c62f13d106 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sun, 4 Jun 2017 12:04:31 +0100 Subject: [PATCH] JAL-2291 bug fix - BitSet.set is [start,end+1) --- src/jalview/datamodel/Sequence.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.7.10.2