From: kiramt Date: Thu, 9 Nov 2017 20:05:31 +0000 (+0000) Subject: JAL-2827 Fix notched repaint of helix annotation when scrolling X-Git-Tag: Release_2_10_3b1~5^2~6^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9a2ab4782fb521cbad830ef556431cf9009a0994;p=jalview.git JAL-2827 Fix notched repaint of helix annotation when scrolling --- diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 41772d4..683ca78 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -1147,7 +1147,8 @@ public class AnnotationRenderer { g.setColor(HELIX_COLOUR); - int sCol = (lastSSX / charWidth) + startRes; + int sCol = (lastSSX / charWidth) + + hiddenColumns.adjustForHiddenColumns(startRes); int x1 = lastSSX; int x2 = (x * charWidth);