Merge remote-tracking branch 'origin/develop' into
[jalview.git] / src / jalview / datamodel / AlignmentView.java
index a61d0d1..5058dcf 100644 (file)
@@ -972,14 +972,14 @@ public class AlignmentView
       if (start < fwidth)
       {
         viscontigs[nvis] = start;
-        viscontigs[nvis + 1] = fwidth; // end is inclusive
+        viscontigs[nvis + 1] = fwidth - 1; // end is inclusive
         nvis += 2;
       }
       return viscontigs;
     }
     else
     {
-      return new int[] { 0, width };
+      return new int[] { 0, width - 1 };
     }
   }