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:
af891ca
)
JAL-2609 JAL-2636 ensure scrolled on scale above is drawn
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 1 Aug 2017 12:31:08 +0000
(14:31 +0200)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Tue, 1 Aug 2017 12:31:08 +0000
(14:31 +0200)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
6836531
..
5796b63
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-1324,7
+1324,12
@@
public class SeqCanvas extends JComponent implements ViewportListenerI
protected void fastPaintWrappedTopLeft(int columns)
{
int startRes = av.getRanges().getStartRes();
- int endx = startRes + columns - 1;
+
+ /*
+ * draw one extra column than strictly needed - this is a (harmless)
+ * fudge to ensure scale marks get drawn (JAL-2636)
+ */
+ int endx = startRes + columns;
int ypos = 0;
/*