From: gmungoc Date: Tue, 18 Jul 2017 12:01:46 +0000 (+0100) Subject: JAL-147 draw up to last position of wrapped alignment! X-Git-Tag: Release_2_10_3b1~132^2~41 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=171bb10b5fdc06925e47025829e6cede32b85b63;p=jalview.git JAL-147 draw up to last position of wrapped alignment! --- diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index 0f10363..9de5452 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -449,12 +449,12 @@ public class SeqCanvas extends Panel implements ViewportListenerI int endx; int ypos = hgap; - int maxwidth = av.getAlignment().getWidth() - 1; + int maxwidth = av.getAlignment().getWidth(); if (av.hasHiddenColumns()) { maxwidth = av.getAlignment().getHiddenColumns() - .findColumnPosition(maxwidth) - 1; + .findColumnPosition(maxwidth); } while ((ypos <= canvasHeight) && (startRes < maxwidth)) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index fb41f86..a134afa 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -523,12 +523,12 @@ public class SeqCanvas extends JComponent implements ViewportListenerI int endx; int ypos = hgap; - int maxwidth = av.getAlignment().getWidth() - 1; + int maxwidth = av.getAlignment().getWidth(); if (av.hasHiddenColumns()) { maxwidth = av.getAlignment().getHiddenColumns() - .findColumnPosition(maxwidth) - 1; + .findColumnPosition(maxwidth); } while ((ypos <= canvasHeight) && (startRes < maxwidth))