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:
06f2d68
)
JAL-2774 Fix fastpaint of wrapped alignment
author
kiramt
<k.mourao@dundee.ac.uk>
Tue, 7 Nov 2017 17:09:30 +0000
(17:09 +0000)
committer
kiramt
<k.mourao@dundee.ac.uk>
Tue, 7 Nov 2017 17:09:30 +0000
(17:09 +0000)
src/jalview/gui/SeqCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SeqCanvas.java
b/src/jalview/gui/SeqCanvas.java
index
7724592
..
6919f8a
100755
(executable)
--- a/
src/jalview/gui/SeqCanvas.java
+++ b/
src/jalview/gui/SeqCanvas.java
@@
-1712,7
+1712,14
@@
public class SeqCanvas extends JComponent implements ViewportListenerI
}
else if (eventName.equals(ViewportRanges.STARTRESANDSEQ))
{
- fastPaint(scrollX, 0);
+ if (av.getWrapAlignment())
+ {
+ fastPaintWrapped(scrollX);
+ }
+ else
+ {
+ fastPaint(scrollX, 0);
+ }
// bizarrely, we only need to scroll on the x value here as fastpaint
// copies the full height of the image anyway. Passing in the y value
// causes nasty repaint artefacts, which only disappear on a full