From: Jim Procter Date: Tue, 4 Jun 2013 13:23:08 +0000 (+0100) Subject: fix for JAL-1246 X-Git-Tag: Jalview_2_9~248^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c8881dabb437c1c9544247a369f8878357a836de;p=jalview.git fix for JAL-1246 --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index ac01e2f..89289c0 100644 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -146,7 +146,7 @@ public class SeqPanel extends Panel implements MouseMotionListener, SequenceI sequence = (Sequence) av.getAlignment().getSequenceAt( seqCanvas.cursorY); - seqCanvas.cursorX = sequence.findIndex(getKeyboardNo1() - 1); + seqCanvas.cursorX = sequence.findIndex(getKeyboardNo1()) - 1; scrollToVisible(); } diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 9c3d557..86c52b3 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -307,7 +307,7 @@ public class SeqPanel extends JPanel implements MouseListener, { SequenceI sequence = av.getAlignment().getSequenceAt(seqCanvas.cursorY); - seqCanvas.cursorX = sequence.findIndex(getKeyboardNo1() - 1); + seqCanvas.cursorX = sequence.findIndex(getKeyboardNo1()) - 1; scrollToVisible(); }