X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FSeqCanvas.java;h=6919f8a3621b2edd4c1704070893548ad99c970f;hb=e510f5ac2ae4530767c92cbe99e871c7f21eb36a;hp=772459269f0e3f806a56b662dc1a2e685f7dfe3b;hpb=06f2d682b8b68f630596e5ffa503fe0a32388002;p=jalview.git 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