From 7d94c626bdb25815aa9b29a462520fc36e87c6e5 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 6 May 2005 17:07:02 +0000 Subject: [PATCH] wrap align correction for last row --- src/jalview/appletgui/IdCanvas.java | 2 +- src/jalview/appletgui/SeqCanvas.java | 2 ++ src/jalview/gui/IdCanvas.java | 2 +- src/jalview/gui/SeqCanvas.java | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jalview/appletgui/IdCanvas.java b/src/jalview/appletgui/IdCanvas.java index cc042ed..80533f2 100755 --- a/src/jalview/appletgui/IdCanvas.java +++ b/src/jalview/appletgui/IdCanvas.java @@ -135,7 +135,7 @@ public class IdCanvas extends Panel int rowSize = av.getEndRes() - av.getStartRes(); // Draw the rest of the panels - for(int ypos=2*av.charHeight, row=av.getEndRes()-rowSize; + for(int ypos=2*av.charHeight, row=av.startRes; ypos <= getSize().height && row