bugfix for sequence features mapped to multiple contigs on local sequence frame
authorjprocter <Jim Procter>
Tue, 24 Apr 2007 14:34:08 +0000 (14:34 +0000)
committerjprocter <Jim Procter>
Tue, 24 Apr 2007 14:34:08 +0000 (14:34 +0000)
src/jalview/datamodel/Mapping.java

index 705cb15..2594c31 100644 (file)
@@ -172,7 +172,7 @@ public class Mapping {
       if (map!=null) {
         int[] frange = map.locateInFrom(f.getBegin(), f.getEnd());
         SequenceFeature[] vf = new SequenceFeature[frange.length/2];
-        for (int i=0,v=0;i<frange.length;i+=2) {
+        for (int i=0,v=0;i<frange.length;i+=2,v++) {
           vf[v] = new SequenceFeature(f);
           vf[v].setBegin(frange[i]);
           vf[v].setEnd(frange[i+1]);