patch for occasional ArrayIndexOutOfBounds
authorjprocter <Jim Procter>
Sun, 27 Feb 2011 18:35:54 +0000 (18:35 +0000)
committerjprocter <Jim Procter>
Sun, 27 Feb 2011 18:35:54 +0000 (18:35 +0000)
src/jalview/appletgui/AnnotationLabels.java

index 27c579a..64f5d0b 100755 (executable)
@@ -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