From 13acf0afbe3eb8098d559fc4a19b598f64e3575f Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Sat, 16 Apr 2005 15:38:16 +0000 Subject: [PATCH] allow for final line of alignment --- src/jalview/gui/IdCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/IdCanvas.java b/src/jalview/gui/IdCanvas.java index b693f98..f1ab981 100755 --- a/src/jalview/gui/IdCanvas.java +++ b/src/jalview/gui/IdCanvas.java @@ -120,7 +120,7 @@ public class IdCanvas extends JPanel int rowSize = av.getEndRes() - av.getStartRes(); // Draw the rest of the panels - for(int ypos=2*av.charHeight, row=av.getEndRes(); + for(int ypos=2*av.charHeight, row=av.getEndRes()-rowSize; ypos <= getHeight() && row