Only add first Id to suggestedIds
authoramwaterhouse <Andrew Waterhouse>
Wed, 2 Nov 2005 16:06:39 +0000 (16:06 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 2 Nov 2005 16:06:39 +0000 (16:06 +0000)
src/jalview/io/WSWUBlastClient.java

index 8e4532c..36e5dfd 100755 (executable)
@@ -126,7 +126,10 @@ public class WSWUBlastClient
                         {\r
                             maxFound = value;\r
                             buffer.append(" " + id2 + " " + value + "%; ");\r
-                            suggestedIds.put(id1, id2);\r
+                            if(!suggestedIds.containsKey(id1))\r
+                             {\r
+                               suggestedIds.put(id1, id2);\r
+                             }\r
                         }\r
                     }\r
                 }\r