From: jprocter Date: Tue, 14 Dec 2010 16:43:57 +0000 (+0000) Subject: JAL-724 X-Git-Tag: Release_2_7~357 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ec1ba9894335243c7b6af28f73d3c686a6e88903;p=jalview.git JAL-724 --- diff --git a/src/jalview/ws/rest/params/SeqGroupIndexVector.java b/src/jalview/ws/rest/params/SeqGroupIndexVector.java index 1a7c63f..37d2789 100644 --- a/src/jalview/ws/rest/params/SeqGroupIndexVector.java +++ b/src/jalview/ws/rest/params/SeqGroupIndexVector.java @@ -80,7 +80,7 @@ public class SeqGroupIndexVector extends InputType implements AlignmentProcessor srt[i]=vals[i][0]; jalview.util.QuickSort.sort(srt, vals); list=false; - int last=vals[0][0]; + int last=vals[0][0]-1; for (int[] range:vals) { if (range[1]>last) { @@ -88,7 +88,7 @@ public class SeqGroupIndexVector extends InputType implements AlignmentProcessor { idvector.append(sep); } - idvector.append(range[1]-last+1); + idvector.append(range[1]-last); last=range[1]; list=true; }