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