From: kiramt Date: Thu, 16 Nov 2017 11:57:15 +0000 (+0000) Subject: JAL-2831 Removed unwanted hidden sequences checks X-Git-Tag: Release_2_10_3b1~28^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-2831;p=jalview.git JAL-2831 Removed unwanted hidden sequences checks --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 36ae682..d5c4a56 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -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; diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 2958f9d..e11af48 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -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);