JAL-1858 don't fastpaint highlights if wrapped format bug/JAL-1858fastPaintHighlights
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Sat, 24 Jun 2017 08:16:34 +0000 (09:16 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Sat, 24 Jun 2017 08:16:34 +0000 (09:16 +0100)
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;