JAL-2526 less stringent test for invalid cursor
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 6 Jun 2017 10:49:46 +0000 (11:49 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 6 Jun 2017 10:49:46 +0000 (11:49 +0100)
src/jalview/datamodel/Sequence.java

index 8c53482..27a4163 100755 (executable)
@@ -840,7 +840,7 @@ public class Sequence extends ASequence implements SequenceI
     /*
      * sanity check against range
      */
-    if (curs.columnPosition < 0 || curs.columnPosition >= sequence.length)
+    if (curs.columnPosition < 0 || curs.columnPosition > sequence.length)
     {
       return false;
     }