From: James Procter Date: Fri, 29 Sep 2023 07:28:03 +0000 (+0100) Subject: JAL-3858 fix check annotation row and column positioning in case we have been called... X-Git-Tag: Release_2_11_3_0~6^2~16 X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=60b5bd72afd991cd1f0c0e622f3552552a8b6a93 JAL-3858 fix check annotation row and column positioning in case we have been called during an annotation height change operation --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 98e9b3e..6c9cb6c 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -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; }