From d5cb0190f46cbbf4cfd6f0f20cfe562cda005984 Mon Sep 17 00:00:00 2001 From: kiramt Date: Tue, 14 Nov 2017 14:10:30 +0000 Subject: [PATCH] JAL-2811 Missed commit --- src/jalview/gui/SeqCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 4aa7851..fdd51c2 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -1276,8 +1276,8 @@ public class SeqCanvas extends JComponent implements ViewportListenerI BufferedImage cursorImage = null; // convert the cursorY into a position on the visible alignment - int cursor_ypos = av.getAlignment().getHiddenColumns() - .findColumnPosition(cursorY); + int cursor_ypos = av.getAlignment().getHiddenSequences() + .findIndexWithoutHiddenSeqs(cursorY); // don't do work unless we have to if (av.cursorMode && cursor_ypos >= startSeq && cursor_ypos <= endSeq) -- 1.7.10.2