JAL-3858 fix check annotation row and column positioning in case we have been called...
authorJames Procter <j.procter@dundee.ac.uk>
Fri, 29 Sep 2023 07:28:03 +0000 (08:28 +0100)
committerJames Procter <j.procter@dundee.ac.uk>
Fri, 29 Sep 2023 07:28:03 +0000 (08:28 +0100)
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;
     }