From 5849c5d65d666d703d622d75624f3a448481493a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 6 Jun 2017 11:49:46 +0100 Subject: [PATCH] JAL-2526 less stringent test for invalid cursor --- src/jalview/datamodel/Sequence.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 8c53482..27a4163 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -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; } -- 1.7.10.2