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:
924009a
)
patch for occasional ArrayIndexOutOfBounds
author
jprocter
<Jim Procter>
Sun, 27 Feb 2011 18:35:54 +0000
(18:35 +0000)
committer
jprocter
<Jim Procter>
Sun, 27 Feb 2011 18:35:54 +0000
(18:35 +0000)
src/jalview/appletgui/AnnotationLabels.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AnnotationLabels.java
b/src/jalview/appletgui/AnnotationLabels.java
index
27c579a
..
64f5d0b
100755
(executable)
--- a/
src/jalview/appletgui/AnnotationLabels.java
+++ b/
src/jalview/appletgui/AnnotationLabels.java
@@
-336,7
+336,7
@@
public class AnnotationLabels extends Panel implements ActionListener,
int end = getSelectedRow(evt.getY() + scrollOffset);
- if (start != end)
+ if (start>-1 && start != end)
{
// Swap these annotations
AlignmentAnnotation startAA = ap.av.alignment