git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
031bd1f
)
fixed multiple shifts bug.
author
jprocter
<Jim Procter>
Wed, 9 Aug 2006 16:12:58 +0000
(16:12 +0000)
committer
jprocter
<Jim Procter>
Wed, 9 Aug 2006 16:12:58 +0000
(16:12 +0000)
src/jalview/util/ShiftList.java
patch
|
blob
|
history
diff --git
a/src/jalview/util/ShiftList.java
b/src/jalview/util/ShiftList.java
index
e21392b
..
905b098
100644
(file)
--- a/
src/jalview/util/ShiftList.java
+++ b/
src/jalview/util/ShiftList.java
@@
-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