JAL-3493 clear search highlights when escape/deselect all
authorJim Procter <jprocter@issues.jalview.org>
Mon, 29 Jun 2020 16:24:29 +0000 (17:24 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 29 Jun 2020 16:24:29 +0000 (17:24 +0100)
src/jalview/gui/AlignFrame.java

index b7d8b3a..2db0884 100644 (file)
@@ -2450,7 +2450,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     }
     viewport.setSelectionGroup(null);
     viewport.getColumnSelection().clear();
-    viewport.setSelectionGroup(null);
+    viewport.setSearchResults(null);
     alignPanel.getIdPanel().getIdCanvas().searchResults = null;
     // JAL-2034 - should delegate to
     // alignPanel to decide if overview needs