efficiency
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 18 Feb 2010 11:58:16 +0000 (11:58 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 18 Feb 2010 11:58:16 +0000 (11:58 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@506 be28352e-c001-0410-b1a7-c7978e42abec

src/uk/ac/vamsas/objects/utils/Range.java

index 8e4c314..ca7a3a0 100644 (file)
@@ -98,7 +98,7 @@ public class Range {
         // discontinuities.\r
         int pos = dseta.getPos(0).getI();\r
         se = new int[] { pos, pos };\r
-        for (int p = 0, pSize = dseta.getPosCount(); p < pSize; p++) {\r
+        for (int p = 1, pSize = dseta.getPosCount(); p < pSize; p++) {\r
           pos = dseta.getPos(p).getI();\r
           if (se[0] > pos) {\r
             se[0] = pos;\r