From: kiramt Date: Fri, 10 Nov 2017 10:08:50 +0000 (+0000) Subject: JAL-2827 related fixes for stem and non-canonical annotation X-Git-Tag: Release_2_10_3b1~5^2~6^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=642efeed2ec89ac027f4a9f21393669e61632282;p=jalview.git JAL-2827 related fixes for stem and non-canonical annotation --- 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);