selected group draws last residue
authoramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 08:07:27 +0000 (08:07 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 08:07:27 +0000 (08:07 +0000)
src/jalview/gui/SeqCanvas.java

index 9b44939..9b59309 100755 (executable)
@@ -363,7 +363,7 @@ public void fastPaint(int horizontal, int vertical)
         {\r
           sx = (group.getStartRes() - startx) * av.charWidth;\r
           sy = offset + AlignmentUtil.getPixelHeight(starty, i, av.charHeight);\r
-          ex = (group.getEndRes() + 1 - group.getStartRes()) * av.charWidth;\r
+          ex = (group.getEndRes() + 1 - group.getStartRes()) * av.charWidth -1;\r
 \r
           if (av.getWrapAlignment())\r
           {\r
@@ -371,15 +371,8 @@ public void fastPaint(int horizontal, int vertical)
               sx = 0;\r
 \r
             if (ex > getWidth())\r
-            {\r
-              if (av.getWrapAlignment())\r
                 ex = getWrappedCanvasWidth(getWidth()) * av.charWidth;\r
-\r
-            }\r
           }\r
-          else if(ex>getWidth())\r
-            ex -= av.charWidth;\r
-\r
 \r
           if (sx < getWidth()\r
               && ex > 0\r