From b33823044896952eaa3f31f3470c5d16ec00ccf6 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 25 Apr 2005 16:50:27 +0000 Subject: [PATCH] +1 in fastpaint sends coloured text outofbounds --- src/jalview/gui/SeqCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 492745f..30a8090 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -122,7 +122,7 @@ public void fastPaint(int horizontal, int vertical) gg.copyArea(0, 0, imgWidth, imgHeight, -horizontal * av.charWidth, -vertical * av.charHeight); - int sr = av.startRes, er = av.endRes + 1, ss = av.startSeq, es = av.endSeq, + int sr = av.startRes, er = av.endRes, ss = av.startSeq, es = av.endSeq, transX = 0, transY = 0; if (horizontal > 0) // scrollbar pulled right, image to the left { -- 1.7.10.2