From 0afdd9e523ca69ab2ce00611e5f3dcb0e57f72ae Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 1 Aug 2017 14:31:08 +0200 Subject: [PATCH] JAL-2609 JAL-2636 ensure scrolled on scale above is drawn --- src/jalview/gui/SeqCanvas.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 6836531..5796b63 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -1324,7 +1324,12 @@ public class SeqCanvas extends JComponent implements ViewportListenerI protected void fastPaintWrappedTopLeft(int columns) { int startRes = av.getRanges().getStartRes(); - int endx = startRes + columns - 1; + + /* + * draw one extra column than strictly needed - this is a (harmless) + * fudge to ensure scale marks get drawn (JAL-2636) + */ + int endx = startRes + columns; int ypos = 0; /* -- 1.7.10.2