JAL-1858 don't fastpaint highlights if wrapped format
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 52e5849..858b8c8 100755 (executable)
@@ -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;