From: amwaterhouse Date: Mon, 18 Apr 2005 08:07:27 +0000 (+0000) Subject: selected group draws last residue X-Git-Tag: Release_2_0~392 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1a6fbadeec90e7524075ed6e37bbe4b7bba97a94;p=jalview.git selected group draws last residue --- 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