From: amwaterhouse Date: Mon, 2 Apr 2007 12:50:07 +0000 (+0000) Subject: addElement X-Git-Tag: Release_2_3~285 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=539bd323123b239afdac5ef7b7706d6ccfc6a41d;hp=f35a68b13c21594f198a65f4ad14b2b52aa6d05b;p=jalview.git addElement --- diff --git a/src/jalview/util/MapList.java b/src/jalview/util/MapList.java index 50077e3..4a59f88 100644 --- a/src/jalview/util/MapList.java +++ b/src/jalview/util/MapList.java @@ -79,7 +79,7 @@ public class MapList /** * lowest and highest value in the to Map */ - int[] toRange=null; + int[] toRange=null; public int getFromRatio() { return fromRatio; @@ -113,11 +113,11 @@ public class MapList fromShifts = new Vector(); for (int i=0;i=iv[0] && startpos<=iv[1]) { - fs = i; + fs = i; } if (fe==-1 && endpos>=iv[0] && endpos<=iv[1]) { - fe = i; + fe = i; } } else { if (fs==-1 && startpos<=iv[0] && startpos>=iv[1]) { - fs = i; + fs = i; } if (fe==-1 && endpos<=iv[0] && endpos>=iv[1]) { - fe = i; + fe = i; } } i++; @@ -479,7 +479,7 @@ public class MapList iv = (int[]) fromShifts2.elementAt(i); iv = new int[] { iv[1], iv[0]};// reverse and clone // truncate initial interval - if (i==fs) + if (i==fs) { iv[0] = startpos; } @@ -496,13 +496,13 @@ public class MapList } // create array of start end intervals. int[] range = null; - if (ranges!=null && ranges.size()>0) + if (ranges!=null && ranges.size()>0) { range = new int[ranges.size()*2]; intv = 0; intvSize=ranges.size(); - i=0; - while (intv