wrap align correction for last row
[jalview.git] / src / jalview / gui / IdCanvas.java
index d7a034c..048fb37 100755 (executable)
@@ -132,7 +132,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()-rowSize;\r
+          for(int ypos=2*av.charHeight, row=av.startRes;\r
               ypos <= getHeight() && row<av.alignment.getWidth();\r
               ypos += av.chunkHeight, row+=rowSize )\r
           {\r