From: kiramt Date: Fri, 26 May 2017 21:11:00 +0000 (+0100) Subject: JAL-2491 Missed port to applet from JAL-1691 X-Git-Tag: Release_2_10_2~3^2~64^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-2491;p=jalview.git JAL-2491 Missed port to applet from JAL-1691 --- diff --git a/src/jalview/appletgui/AlignmentPanel.java b/src/jalview/appletgui/AlignmentPanel.java index d95c48f..e402b9b 100644 --- a/src/jalview/appletgui/AlignmentPanel.java +++ b/src/jalview/appletgui/AlignmentPanel.java @@ -407,7 +407,8 @@ public class AlignmentPanel extends Panel implements AdjustmentListener, { int offset = (vpRanges.getEndRes() - vpRanges.getStartRes() + 1) / 2 - 1; start = Math.max(start - offset, 0); - end = Math.min(end + offset, seq.getEnd() - 1); + end = end + offset - 1; + // end = Math.min(end + offset, seq.getEnd() - 1); } if (start < 0)