From 642efeed2ec89ac027f4a9f21393669e61632282 Mon Sep 17 00:00:00 2001 From: kiramt Date: Fri, 10 Nov 2017 10:08:50 +0000 Subject: [PATCH] JAL-2827 related fixes for stem and non-canonical annotation --- src/jalview/renderer/AnnotationRenderer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index 683ca78..8a80d41 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -162,7 +162,8 @@ public class AnnotationRenderer boolean validRes, boolean validEnd) { g.setColor(STEM_COLOUR); - int sCol = (lastSSX / charWidth) + startRes; + int sCol = (lastSSX / charWidth) + + hiddenColumns.adjustForHiddenColumns(startRes); int x1 = lastSSX; int x2 = (x * charWidth); @@ -228,7 +229,8 @@ public class AnnotationRenderer // System.out.println(nonCanColor); g.setColor(nonCanColor); - int sCol = (lastSSX / charWidth) + startRes; + int sCol = (lastSSX / charWidth) + + hiddenColumns.adjustForHiddenColumns(startRes); int x1 = lastSSX; int x2 = (x * charWidth); -- 1.7.10.2