If search results==null, displaySearch is false
authoramwaterhouse <Andrew Waterhouse>
Wed, 1 Dec 2004 17:35:08 +0000 (17:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 1 Dec 2004 17:35:08 +0000 (17:35 +0000)
src/jalview/gui/SeqCanvas.java

index 8785454..3850244 100755 (executable)
@@ -401,8 +401,13 @@ public class SeqCanvas extends JPanel
   public void highlightSearchResults(int [] results)\r
   {\r
     // results are in the order sequence, startRes, endRes\r
+    if(results==null)\r
+      displaySearch = false;\r
+    else\r
+      displaySearch = true;\r
+\r
     searchResults = results;\r
-    displaySearch = true;\r
+\r
     paintFlag = true;\r
     repaint();\r
   }\r