JAL-3858 fix check annotation row and column positioning in case we have been called...
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 98e9b3e..6c9cb6c 100755 (executable)
@@ -633,7 +633,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
     int yOffset = rowIndex[1];
     AlignmentAnnotation[] allAnnotation = av.getAlignment()
             .getAlignmentAnnotation();
-    if (allAnnotation==null || rowIndex[0]<0 || rowIndex[0]>allAnnotation.length)
+    if (allAnnotation==null || rowIndex[0]<0 || rowIndex[0]>=allAnnotation.length)
     {
       return false;
     }