JAL-3161 limit tooltip and status updates to visible columns bug/JAL-3161annotationTooltipRange
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 22 Nov 2018 14:03:44 +0000 (14:03 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 22 Nov 2018 14:03:44 +0000 (14:03 +0000)
src/jalview/gui/AnnotationPanel.java

index 50971c7..db531a0 100755 (executable)
@@ -723,6 +723,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
 
     int column = (evt.getX() / av.getCharWidth())
             + av.getRanges().getStartRes();
+    column = Math.min(column, av.getRanges().getEndRes());
 
     if (av.hasHiddenColumns())
     {