From 60b5bd72afd991cd1f0c0e622f3552552a8b6a93 Mon Sep 17 00:00:00 2001 From: James Procter Date: Fri, 29 Sep 2023 08:28:03 +0100 Subject: [PATCH] JAL-3858 fix check annotation row and column positioning in case we have been called during an annotation height change operation --- src/jalview/gui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 1.7.10.2