Merge branch 'bug/JAL-3806_mappingCoversSequence' into releases/Release_2_11_1_Branch
[jalview.git] / src / jalview / datamodel / AlignedCodonFrame.java
index 049a5f4..6ccc0fc 100644 (file)
@@ -171,8 +171,8 @@ public class AlignedCodonFrame
 
       if (length != -1)
       {
-        // add 1 to mapped length to allow for a mapped stop codon
-        if (length + 1 >= (mend - mstart + 1))
+        // add 3 to mapped length to allow for a mapped stop codon
+        if (length + 3 >= (mend - mstart + 1))
         {
           return true;
         }
@@ -954,9 +954,9 @@ public class AlignedCodonFrame
   }
 
   /**
-   * Returns the first mapping found which is between the given sequence and
-   * another, is a triplet mapping (3:1 or 1:3), and covers the full extent of
-   * both sequences involved.
+   * Returns the first mapping found which is between the given dataset sequence
+   * and another, is a triplet mapping (3:1 or 1:3), and covers the full extent
+   * of both sequences involved
    * 
    * @param seq
    * @return