From 195b605509007fa22622c277eb106ae6e994bfb0 Mon Sep 17 00:00:00 2001 From: kiramt Date: Thu, 16 Nov 2017 11:57:15 +0000 Subject: [PATCH] JAL-2831 Removed unwanted hidden sequences checks --- src/jalview/gui/SeqCanvas.java | 6 ++---- src/jalview/gui/SeqPanel.java | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) 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); -- 1.7.10.2