JAL-2831 Removed unwanted hidden sequences checks bug/JAL-2831
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 16 Nov 2017 11:57:15 +0000 (11:57 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 16 Nov 2017 11:57:15 +0000 (11:57 +0000)
src/jalview/gui/SeqCanvas.java
src/jalview/gui/SeqPanel.java

index 36ae682..d5c4a56 100755 (executable)
@@ -1266,12 +1266,10 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
           int endSeq)
   {
     // convert the cursorY into a position on the visible alignment
-    int cursor_ypos = av.getAlignment().getHiddenSequences()
-            .findIndexWithoutHiddenSeqs(cursorY);
+    int cursor_ypos = cursorY;
 
     // don't do work unless we have to
-    if (!av.getAlignment().getHiddenSequences().isHidden(cursorY)
-            && cursor_ypos >= startSeq && cursor_ypos <= endSeq)
+    if (cursor_ypos >= startSeq && cursor_ypos <= endSeq)
     {
       int yoffset = 0;
       int xoffset = 0;
index 2958f9d..e11af48 100644 (file)
@@ -428,9 +428,7 @@ public class SeqPanel extends JPanel
       }
     }
 
-    if (!av.getAlignment().getHiddenSequences().isHidden(seqCanvas.cursorY)
-            && av.getAlignment().getHiddenColumns()
-                    .isVisible(seqCanvas.cursorX))
+    if (av.getAlignment().getHiddenColumns().isVisible(seqCanvas.cursorX))
     {
       setStatusMessage(av.getAlignment().getSequenceAt(seqCanvas.cursorY),
             seqCanvas.cursorX, seqCanvas.cursorY);