JAL-2759 make bounds correct for left scrolling with hidden cols
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 9 Nov 2017 14:35:12 +0000 (14:35 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 9 Nov 2017 14:35:12 +0000 (14:35 +0000)
src/jalview/datamodel/HiddenColumns.java

index b86a1a1..dd1e1b3 100644 (file)
@@ -1527,7 +1527,7 @@ public class HiddenColumns
 
             i++;
           }
-          if (visSoFar < end - start)
+          if (visSoFar < end - start + 1)
           {
             // the number of visible columns we've accounted for is less than
             // the number specified by end-start; work out the end position of