JAL-2491 Missed port to applet from JAL-1691 bug/JAL-2491
authorkiramt <k.mourao@dundee.ac.uk>
Fri, 26 May 2017 21:11:00 +0000 (22:11 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Fri, 26 May 2017 21:11:00 +0000 (22:11 +0100)
src/jalview/appletgui/AlignmentPanel.java

index d95c48f..e402b9b 100644 (file)
@@ -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)