JAL-3493 fix patch for 2.11.1_js (nb - these changes should not be merged to 2.11.2!)
authorJim Procter <jprocter@issues.jalview.org>
Mon, 29 Jun 2020 17:39:41 +0000 (18:39 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 29 Jun 2020 17:39:41 +0000 (18:39 +0100)
src/jalview/gui/AlignmentPanel.java
test/jalview/gui/SeqCanvasTest.java

index 08843aa..277e11d 100644 (file)
@@ -1942,7 +1942,7 @@ public class AlignmentPanel extends GAlignmentPanel implements
     }
     av.setSelectionGroup(null);
     av.getColumnSelection().clear();
-    viewport.setSearchResults(null);
+    av.setSearchResults(null);
     getIdPanel().getIdCanvas().searchResults = null;
     av.sendSelection();
     // JAL-2034 - should delegate to
index de33b52..34e88ad 100644 (file)
@@ -377,6 +377,8 @@ public class SeqCanvasTest
   @Test(groups = "Functional")
   public void testClear_HighlightAndSelection()
   {
+    AlignFrame af = new FileLoader().LoadFileWaitTillLoaded(
+            "examples/uniref50.fa", DataSourceType.FILE);
     AlignViewport av = af.getViewport();
     SearchResultsI highlight = new SearchResults();
     highlight.addResult(