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:
3731832
)
JAL-2609 process only up to end of alignment when shifting sequences
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 3 Aug 2017 15:27:14 +0000
(17:27 +0200)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 3 Aug 2017 15:27:14 +0000
(17:27 +0200)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
12b426d
..
576d6ca
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-1505,8
+1505,15
@@
public class SeqCanvas extends JComponent implements ViewportListenerI
{
visibleWidths++;
}
- // todo limit visibleWidths to not exceed width of alignment
- // (don't process white space below)
+ /*
+ * limit visibleWidths to not exceed width of alignment
+ */
+ int maxWidths = (xMax - ranges.getStartRes()) / viewportWidth;
+ if (xMax % viewportWidth > 0)
+ {
+ maxWidths++;
+ }
+ visibleWidths = Math.min(visibleWidths, maxWidths);
if (positions > 0)
{