allow for final line of alignment
authoramwaterhouse <Andrew Waterhouse>
Sat, 16 Apr 2005 15:38:16 +0000 (15:38 +0000)
committeramwaterhouse <Andrew Waterhouse>
Sat, 16 Apr 2005 15:38:16 +0000 (15:38 +0000)
src/jalview/gui/IdCanvas.java

index b693f98..f1ab981 100755 (executable)
@@ -120,7 +120,7 @@ public class IdCanvas extends JPanel
           int rowSize =  av.getEndRes() - av.getStartRes();\r
           // Draw the rest of the panels\r
 \r
-          for(int ypos=2*av.charHeight, row=av.getEndRes();\r
+          for(int ypos=2*av.charHeight, row=av.getEndRes()-rowSize;\r
               ypos <= getHeight() && row<av.alignment.getWidth();\r
               ypos += av.chunkHeight, row+=rowSize )\r
           {\r