git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
patch for occasional ArrayIndexOutOfBounds
[jalview.git]
/
src
/
jalview
/
appletgui
/
AnnotationLabels.java
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