From f40c312c2886853668ad7651461d8a1b8600e659 Mon Sep 17 00:00:00 2001 From: kiramt Date: Fri, 26 May 2017 22:11:00 +0100 Subject: [PATCH] JAL-2491 Missed port to applet from JAL-1691 --- src/jalview/appletgui/AlignmentPanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 1.7.10.2