git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762911d
)
JAL-2491 Missed port to applet from JAL-1691
bug/JAL-2491
author
kiramt
<k.mourao@dundee.ac.uk>
Fri, 26 May 2017 21:11:00 +0000
(22:11 +0100)
committer
kiramt
<k.mourao@dundee.ac.uk>
Fri, 26 May 2017 21:11:00 +0000
(22:11 +0100)
src/jalview/appletgui/AlignmentPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AlignmentPanel.java
b/src/jalview/appletgui/AlignmentPanel.java
index
d95c48f
..
e402b9b
100644
(file)
--- 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)