+1 in fastpaint sends coloured text outofbounds
[jalview.git] / src / jalview / gui / SeqCanvas.java
index 492745f..30a8090 100755 (executable)
@@ -122,7 +122,7 @@ public void fastPaint(int horizontal, int vertical)
     gg.copyArea(0, 0, imgWidth, imgHeight, -horizontal * av.charWidth,\r
                 -vertical * av.charHeight);\r
 \r
-    int sr = av.startRes, er = av.endRes + 1, ss = av.startSeq, es = av.endSeq,\r
+    int sr = av.startRes, er = av.endRes, ss = av.startSeq, es = av.endSeq,\r
         transX = 0, transY = 0;\r
     if (horizontal > 0) // scrollbar pulled right, image to the left\r
     {\r