Merge branch 'releases/Release_2_11_1_Branch' of http://source.jalview.org/git/jalvie...
authorJim Procter <jprocter@issues.jalview.org>
Wed, 21 Oct 2020 15:21:28 +0000 (16:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Wed, 21 Oct 2020 15:21:28 +0000 (16:21 +0100)
RELEASE
help/help/html/releases.html
help/help/html/whatsNew.html
src/jalview/analysis/Finder.java
test/jalview/analysis/FinderTest.java

diff --git a/RELEASE b/RELEASE
index 90eaa35..b5ce6d5 100644 (file)
--- a/RELEASE
+++ b/RELEASE
@@ -1,2 +1,2 @@
 jalview.release=releases/Release_2_11_1_Branch
-jalview.version=2.11.1.2
+jalview.version=2.11.1.3
index 9d3c0d2..0e3e652 100755 (executable)
@@ -57,6 +57,23 @@ li:before {
     </tr>
     <tr>
       <td width="60" align="center" nowrap><strong><a
+          id="Jalview.2.11.1">2.11.1</a><a id="Jalview.2.11.1.3">.3</a><br />
+          <em>27/10/2020</em></strong></td>
+      <td align="left" valign="top">
+        <ul>
+        </ul>
+      </td>
+      <td align="left" valign="top">
+        <ul>
+          <li>
+            <!-- JAL-3765 -->Find doesn't always highlight all matching
+            positions in a sequence
+          </li>
+        </ul>
+      </td>
+    </tr>
+    <tr>
+      <td width="60" align="center" nowrap><strong><a
           id="Jalview.2.11.1">2.11.1</a><a id="Jalview.2.11.1.2">.2</a><br />
           <em>25/09/2020</em></strong></td>
       <td align="left" valign="top">
index cc91c62..a448aaa 100755 (executable)
@@ -24,9 +24,9 @@
 </head>
 <body>
   <p>
-    <strong>Jalview 2.11.1.2</strong>
+    <strong>Jalview 2.11.1.3</strong>
   </p>
-  <p>Jalview 2.11.1.2 is the second patch release, fixing a bug
+  <p>Jalview 2.11.1.3 is the third patch release, fixing a bug
     introduced in last weeks Jalview 2.11.1.1 release affecting display
     of Jalview's example project for some users. Together, these
     releases include fixes for a number of critical bugs, and also contains a
index c545c7f..d52e42a 100644 (file)
@@ -417,7 +417,7 @@ public class Finder implements FinderI
      * update residueIndex to next position after the start of the match
      * (findIndex returns a value base 1, columnIndex is held base 0)
      */
-    residueIndex += offset + 1;
+    residueIndex = searchPattern.matchedFrom()+1;
 
     /*
      * return false if the match is entirely in a hidden region
index 95e6c0d..1f45f70 100644 (file)
@@ -123,6 +123,19 @@ public class FinderTest
     assertEquals(matches.get(1).getEnd(), 6);
   }
 
+  @Test(groups = "Functional")
+  public void testFind_findAll()
+  {
+    /*
+     * simple JAL-3765 test
+     * single symbol should find *all* matching symbols 
+     */
+    Finder f = new Finder(av);
+    f.findAll("M", false,false,false);
+    SearchResultsI sr = f.getSearchResults();
+    assertEquals(sr.getCount(),5);
+    
+  }
   /**
    * Test for (undocumented) find residue by position
    */