From 1a6fbadeec90e7524075ed6e37bbe4b7bba97a94 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 18 Apr 2005 08:07:27 +0000 Subject: [PATCH] selected group draws last residue --- src/jalview/gui/SeqCanvas.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 9b44939..9b59309 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -363,7 +363,7 @@ public void fastPaint(int horizontal, int vertical) { sx = (group.getStartRes() - startx) * av.charWidth; sy = offset + AlignmentUtil.getPixelHeight(starty, i, av.charHeight); - ex = (group.getEndRes() + 1 - group.getStartRes()) * av.charWidth; + ex = (group.getEndRes() + 1 - group.getStartRes()) * av.charWidth -1; if (av.getWrapAlignment()) { @@ -371,15 +371,8 @@ public void fastPaint(int horizontal, int vertical) sx = 0; if (ex > getWidth()) - { - if (av.getWrapAlignment()) ex = getWrappedCanvasWidth(getWidth()) * av.charWidth; - - } } - else if(ex>getWidth()) - ex -= av.charWidth; - if (sx < getWidth() && ex > 0 -- 1.7.10.2