From 9a2ab4782fb521cbad830ef556431cf9009a0994 Mon Sep 17 00:00:00 2001 From: kiramt Date: Thu, 9 Nov 2017 20:05:31 +0000 Subject: [PATCH] JAL-2827 Fix notched repaint of helix annotation when scrolling --- src/jalview/renderer/AnnotationRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.2