From 171bb10b5fdc06925e47025829e6cede32b85b63 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 18 Jul 2017 13:01:46 +0100 Subject: [PATCH] JAL-147 draw up to last position of wrapped alignment! --- src/jalview/appletgui/SeqCanvas.java | 4 ++-- src/jalview/gui/SeqCanvas.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)) -- 1.7.10.2