From e510f5ac2ae4530767c92cbe99e871c7f21eb36a Mon Sep 17 00:00:00 2001 From: kiramt Date: Tue, 7 Nov 2017 17:09:30 +0000 Subject: [PATCH] JAL-2774 Fix fastpaint of wrapped alignment --- src/jalview/gui/SeqCanvas.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 7724592..6919f8a 100755 --- 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 -- 1.7.10.2