fixed multiple shifts bug.
authorjprocter <Jim Procter>
Wed, 9 Aug 2006 16:12:58 +0000 (16:12 +0000)
committerjprocter <Jim Procter>
Wed, 9 Aug 2006 16:12:58 +0000 (16:12 +0000)
src/jalview/util/ShiftList.java

index e21392b..905b098 100644 (file)
@@ -37,7 +37,7 @@ public class ShiftList
     while (sidx<shifts.size() && (rshift=(int[]) shifts.elementAt(sidx))[0]<pos)\r
       sidx++;\r
     if (sidx==shifts.size())\r
-      shifts.insertElementAt(new int[] { pos, shift}, 0);\r
+      shifts.insertElementAt(new int[] { pos, shift}, sidx);\r
     else\r
       rshift[1]+=shift;\r
   }\r