From 3f8f40c6d29cd368cd4b20185d8a769ce8da0555 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Sat, 24 Jun 2017 09:16:34 +0100 Subject: [PATCH] JAL-1858 don't fastpaint highlights if wrapped format --- src/jalview/gui/SeqCanvas.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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; -- 1.7.10.2