From: jprocter Date: Thu, 18 Feb 2010 11:58:16 +0000 (+0000) Subject: efficiency X-Git-Tag: Release_0.2~15 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ea5226f815eb804035eabf8cb7f4e5c107b29dee;p=vamsas.git efficiency git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@506 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/objects/utils/Range.java b/src/uk/ac/vamsas/objects/utils/Range.java index 8e4c314..ca7a3a0 100644 --- a/src/uk/ac/vamsas/objects/utils/Range.java +++ b/src/uk/ac/vamsas/objects/utils/Range.java @@ -98,7 +98,7 @@ public class Range { // discontinuities. int pos = dseta.getPos(0).getI(); se = new int[] { pos, pos }; - for (int p = 0, pSize = dseta.getPosCount(); p < pSize; p++) { + for (int p = 1, pSize = dseta.getPosCount(); p < pSize; p++) { pos = dseta.getPos(p).getI(); if (se[0] > pos) { se[0] = pos;