From c8f5deb89ce327cd4a103025122e2ee11a4c97fb Mon Sep 17 00:00:00 2001 From: jprocter Date: Sun, 27 Feb 2011 18:35:54 +0000 Subject: [PATCH] patch for occasional ArrayIndexOutOfBounds --- src/jalview/appletgui/AnnotationLabels.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index 27c579a..64f5d0b 100755 --- 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 -- 1.7.10.2