From: kiramt Date: Tue, 7 Nov 2017 17:09:30 +0000 (+0000) Subject: JAL-2774 Fix fastpaint of wrapped alignment X-Git-Tag: Release_2_10_3b1~28^2~11^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e510f5ac2ae4530767c92cbe99e871c7f21eb36a;p=jalview.git JAL-2774 Fix fastpaint of wrapped alignment --- 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