JAL-2491 Resolved highlighting and initialisation problems
[jalview.git] / src / jalview / gui / SeqCanvas.java
index df953a2..d7f2679 100755 (executable)
@@ -511,7 +511,7 @@ public class SeqCanvas extends JComponent implements ViewportListenerI
 
     av.setWrappedWidth(cWidth);
 
-    av.getRanges().setEndRes(av.getRanges().getStartRes() + cWidth);
+    av.getRanges().setEndRes(av.getRanges().getStartRes() + cWidth - 1);
 
     int endx;
     int ypos = hgap;