JAL-2666 fix failure to scroll split alignment of height 1
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 9 Feb 2018 12:03:57 +0000 (12:03 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 9 Feb 2018 12:03:57 +0000 (12:03 +0000)
src/jalview/viewmodel/AlignmentViewport.java

index a0cbff4..bca3c85 100644 (file)
@@ -2781,7 +2781,7 @@ public abstract class AlignmentViewport
     int lastSeq = alignment.getHeight() - 1;
     List<AlignedCodonFrame> seqMappings = null;
     for (int seqNo = ranges
-            .getStartSeq(); seqNo < lastSeq; seqNo++, seqOffset++)
+            .getStartSeq(); seqNo <= lastSeq; seqNo++, seqOffset++)
     {
       sequence = getAlignment().getSequenceAt(seqNo);
       if (hiddenSequences != null && hiddenSequences.isHidden(sequence))