JAL-2827 Fix notched repaint of helix annotation when scrolling
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 9 Nov 2017 20:05:31 +0000 (20:05 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 9 Nov 2017 20:05:31 +0000 (20:05 +0000)
src/jalview/renderer/AnnotationRenderer.java

index 41772d4..683ca78 100644 (file)
@@ -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);