JAL-2811 Missed commit
authorkiramt <k.mourao@dundee.ac.uk>
Tue, 14 Nov 2017 14:10:30 +0000 (14:10 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Tue, 14 Nov 2017 14:10:30 +0000 (14:10 +0000)
src/jalview/gui/SeqCanvas.java

index 4aa7851..fdd51c2 100755 (executable)
@@ -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)