From: gmungoc Date: Sat, 24 Jun 2017 08:16:34 +0000 (+0100) Subject: JAL-1858 don't fastpaint highlights if wrapped format X-Git-Tag: Release_2_10_3b1~192 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-1858fastPaintHighlights;p=jalview.git JAL-1858 don't fastpaint highlights if wrapped format --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 52e5849..858b8c8 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -996,6 +996,17 @@ public class SeqCanvas extends JComponent implements ViewportListenerI public void highlightSearchResults(SearchResultsI results) { updateViewport(); + + /* + * for now, don't attempt fastpaint if wrapped format + */ + if (av.getWrapAlignment()) + { + av.setSearchResults(results); + repaint(); + return; + } + fastpainting = true; fastPaint = true;